document YAML policies in Ingress

This commit is contained in:
alexfornuto 2021-10-18 10:35:26 -05:00
parent ba71fa3595
commit 3c0c0acd1d

View file

@ -205,6 +205,24 @@ spec:
secretName: example-tls
```
::: details Write Policies in YAML
You can also define a route's policies using YAML:
```yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: name
annotations:
ingress.pomerium.io/policy: |
- allow:
or:
- domain:
is: pomerium.com
```
:::
## HTTPS endpoints