Create a docker registry using helm under the namespace "registry" It should use Longhorn for data storage (which is already set up on cluster) Ingress should be : Traefik ( already set up) Cert-Manager is already set up and should be used. The docker registry should answer to https (443) externally to host: "registry.asterisk.is" docker users should need to login using user:docker pass:dockerpass
docker login docker tag nginx:alpine registry.asterisk.is/nginx:alpine docker push registry.asterisk.is/nginx:alpine
First we need to add secret:
kubectl create secret docker-registry regcred \ --docker-server=registry.asterisk.is \ --docker-username=myuser \ --docker-password=mypassword \ -n registry
Reference it through the pod
spec: imagePullSecrets:
- name: regcred
containers:
- name: myapp
image: registry.example.com/nginx:alpine