1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| [root@apiserver local] [root@apiserver local] [root@apiserver basic-auth] [root@apiserver basic-auth] New password: Re-type new password: Adding password for user foo [root@apiserver basic-auth] secret/basic-auth created
[root@apiserver basic-auth] apiVersion: extensions/v1beta1 kind: Ingress metadata: name: ingress-with-auth annotations:
nginx.ingress.kubernetes.io/auth-type: basic nginx.ingress.kubernetes.io/auth-secret: basic-auth nginx.ingress.kubecnetes.io/auth-realm: ‘Authentication Required - foo’ spec: rules:
|