pomerium/examples/kubernetes/example-ingress.yaml
2021-11-01 15:59:24 -05:00

24 lines
567 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: hello
annotations:
cert-manager.io/issuer: pomerium-issuer
ingress.pomerium.io/policy: '[{"allow":{"and":[{"domain":{"is":"example.com"}}]}}]'
spec:
ingressClassName: pomerium
rules:
- host: hello.localhost.pomerium.io
http:
paths:
- backend:
service:
name: nginx
port:
name: http
path: /
pathType: Prefix
tls:
- hosts:
- hello.localhost.pomerium.io
secretName: hello.localhost.pomerium.io-tls