Search…
Private Docker registry

Configuring kubectl

Follow the instructions here.

Setting credentials

1
DOCKER_USERNAME=***
2
DOCKER_PASSWORD=***
3
4
kubectl create secret docker-registry registry-credentials \
5
--namespace default \
6
--docker-username=$DOCKER_USERNAME \
7
--docker-password=$DOCKER_PASSWORD
8
9
kubectl patch serviceaccount default --namespace default \
10
-p "{\"imagePullSecrets\": [{\"name\": \"registry-credentials\"}]}"
Copied!

Deleting credentials

1
kubectl delete secret --namespace default registry-credentials
2
3
kubectl patch serviceaccount default --namespace default \
4
-p "{\"imagePullSecrets\": []}"
Copied!
Last modified 2mo ago