- Add this vars to the env in the deployment
- name: REGISTRY_AUTH_HTPASSWD_REALM
value: Registry Realm
- name: REGISTRY_AUTH_HTPASSWD_PATH
value: /var/lib/registry/registry.auth
- Create the file file
/var/lib/registry/registry.auth
inside the pod [it will be placed on a pv] inside it place some htpass credentials like this:
user1:$2y$05$1fakehash.fakehash.fakehash.fakehash.fakehash.fakehash.fakehash
user2:$2y$05$2fakehash.fakehash.fakehash.fakehash.fakehash.fakehash.fakehash
You can place as many auth creds as you want, optionally remove the default ingress and use it with a https endpoint/ingress