mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-03 19:32:48 +02:00
update k8s install for ingress conrtoller
This commit is contained in:
parent
811059dbfd
commit
2cccde4d57
4 changed files with 45 additions and 9 deletions
24
examples/kubernetes/example-ingress.yaml
Normal file
24
examples/kubernetes/example-ingress.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue