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