Pull an Image from a Private Registry in Kubernetes
Jump to navigation
Jump to search
1) kubectl create secret docker-registry LowercaseRFC1123NAME --docker-username=user --docker-password=password
kubectl get secret LowercaseRFC1123NAME --output=yaml
kubectl create secret generic YOURregcred --from-file=.dockerconfigjson=/path/to/.docker/config.json --type=kubernetes.io/dockerconfigjson
kubectl create secret docker-registry ~/.docker/config.json
Related
spec.imagePullSecrets
- Container registry
docker pull
helm install
~/.docker/config.json
kubernetes.io/dockerconfigjson
kind: Secret
See also
helm install [ --set | --dry-run | --debug | --timeout | --namespace | --create-namespace | --generate-name | --help ] values.yaml
,helm upgrade --install
docker login, PAT, docker login --help, ~/.dockercfg, ~/.docker/config.json
- Kubernetes security, OPA, EKS security, PSA, PSS, CKS,
SecurityContext
, Trivy, KubeBench, Kubernetes Admission Controllersadmissionregistration.k8s.io
, Hardeneks, Gatekeeper (Kubernetes),kubernetes.io/enforce-mountable-secrets
, Auditing
Advertising: