0
|
1 apiVersion: networking.k8s.io/v1
|
|
2 kind: Ingress
|
|
3 metadata:
|
|
4 name: front-door-lock
|
|
5 annotations:
|
|
6 cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
7 ingress.pomerium.io/pass_identity_headers: "true"
|
|
8 ingress.pomerium.io/preserve_host_header: "true"
|
|
9 ingress.pomerium.io/allow_websockets: "true"
|
|
10 ingress.pomerium.io/allow_public_unauthenticated_access: "false"
|
|
11 ingress.pomerium.io/policy: |
|
|
12 allow:
|
|
13 or:
|
|
14 - { email: { is: "drewpca@gmail.com" }}
|
|
15 - { email: { is: "kelsimp@gmail.com" }}
|
|
16 spec:
|
|
17 ingressClassName: pomerium
|
|
18 rules:
|
|
19 - host: "bigasterisk.com"
|
|
20 http:
|
|
21 paths:
|
|
22 - pathType: Prefix
|
|
23 path: /front-door-lock/
|
|
24 backend: { service: { name: front-door-lock, port: { number: 80 } } }
|
|
25 tls:
|
|
26 - hosts: [bigasterisk.com]
|
|
27 secretName: bigasterisk.com-tls
|