- htpasswd
htpasswd -nb username password
-
Copy it in
basic-auth.secret.yaml
at -
Create a secret in your namespace
$ kubectl create -f basic-auth.secret.yaml
- Add values from
values.yaml
to yourvalues.yaml
ingress.yaml:13-16
is the condition needed to use the basic auth on staging only for Traefikingress.yaml:19-29
is the loop needed to parsehosts
fromvalues.yaml