Docker registry
This example demonstrates how to deploy a docker registry in the cluster and configure Ingress enable access from Internet
Deployment
First we deploy the docker registry in the cluster:
!!! Important DO NOT RUN THIS IN PRODUCTION
The next required step is creation of the ingress rules. To do this we have two options: with and without TLS
Without TLS
Download and edit the yaml deployment replacing registry.<your domain>
with a valid DNS name pointing to the ingress controller:
!!! Important Running a docker registry without TLS requires we configure our local docker daemon with the insecure registry flag.
Please check deploy a plain http registry
With TLS
Download and edit the yaml deployment replacing registry.<your domain>
with a valid DNS name pointing to the ingress controller:
Deploy kube lego use Let's Encrypt certificates or edit the ingress rule to use a secret with an existing SSL certificate.
Testing
To test the registry is working correctly we download a known image from docker hub, create a tag pointing to the new registry and upload the image:
Please replace registry.<your domain>
with your domain.
Last updated