mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-06 02:09:15 +02:00
document YAML policies in Ingress
This commit is contained in:
parent
ba71fa3595
commit
3c0c0acd1d
1 changed files with 18 additions and 0 deletions
|
@ -205,6 +205,24 @@ spec:
|
||||||
secretName: example-tls
|
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
|
## HTTPS endpoints
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue