Automating minikube configuration to log in to a Docker Private Registy.
Posted by Admin • Tuesday, March 14. 2023 • Category: DevOpsIn CI, I am using minikube for local testing on my nodes. In the name of repeatable builds, I completely rebuild minikube after each build (minikube delete, minikube start). I am also using an internal Docker Private Registry (DPR or DTR). Same methodology applies if you are using Google Container Registry or the Amazon equivalent. In order to authenticate to DPR, I am using the registry-creds addon. It is normally configured interactively:
$ minikube addons configure registry-creds
Do you want to enable Docker Registry? [y/n]: y
It then asks you some questions and expects user input.
Automating
I want this automated, as it will be running several times an hour. The addon config does not take any parameters, so I'm taking a different approach. The configure step creates some credentials in k8s, and it is possible to transfer them from one cluster to another. This is how I am doing it:
Continue reading "Automating minikube configuration to log in to a Docker Private Registy."