Docker Registry Operator allows deploying the Docker Registry component in the Kyma cluster in compatibility with Lifecycle Manager.
- Create the
kyma-system
namespace:
kubectl create namespace kyma-system
- Apply the following script to install Docker Registry Operator:
kubectl apply -f https://github.com/kyma-project/docker-registry/releases/latest/download/dockerregistry-operator.yaml
- To get Docker Registry installed, apply the sample Docker Registry custom resource (CR):
kubectl apply -f https://github.com/kyma-project/docker-registry/releases/latest/download/default-dockerregistry-cr.yaml
- Access to a Kubernetes (v1.24 or higher) cluster
- Go
- k3d
- Docker
- kubectl
- Kubebuilder
-
Clone the project.
git clone https://github.com/kyma-project/docker-registry.git && cd docker-registry/
-
Build Docker Registry Operator locally and run it in the k3d cluster.
make run
NOTE: To clean up the k3d cluster, use the
make delete-k3d
make target.
-
Create a Docker Registry instance.
kubectl apply -f config/samples/default-dockerregistry-cr.yaml
-
Delete a Docker Registry instance.
kubectl delete -f config/samples/default-dockerregistry-cr.yaml