Basic Auth K8s Secret Creation
Ingress basic authentication module accepts a hashed user file, you can create it with the following command:
htpasswd -c *out_file* *username*
Then, you should create a Secret from the resulting file:
kubectl create secret generic *name* \
--namespace *namespace*
--from-file=auth=*out_file*
Last modified 3mo ago