ingress-nginx-helm/controllers/nginx/examples/auth/auth-ingress.yaml

19 lines
474 B
YAML
Raw Normal View History

2016-05-10 03:14:47 +00:00
# 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