Allow authentication in Ingress rules
This commit is contained in:
parent
e603976721
commit
0d5ba276de
3 changed files with 300 additions and 0 deletions
18
controllers/nginx/examples/auth/auth-ingress.yaml
Normal file
18
controllers/nginx/examples/auth/auth-ingress.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# An Ingress with 2 hosts and 3 endpoints
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: echo-with-auth
|
||||
annotations:
|
||||
ingress-nginx.kubernetes.io/auth-type: basic
|
||||
ingress-nginx.kubernetes.io/auth-secret: echo-auth-secret
|
||||
ingress-nginx.kubernetes.io/auth-realm: "Ingress with Basic Authentication"
|
||||
spec:
|
||||
rules:
|
||||
- host: foo.bar.com
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
backend:
|
||||
serviceName: echoheaders-x
|
||||
servicePort: 80
|
||||
Loading…
Add table
Add a link
Reference in a new issue