committed by
Kubernetes Prow Robot
parent
fd6ec9bdb5
commit
1aae32870d
@@ -281,19 +281,7 @@ Kubernetes supports specifying registry keys on a pod.
|
|||||||
Run the following command, substituting the appropriate uppercase values:
|
Run the following command, substituting the appropriate uppercase values:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
cat <<EOF > ./kustomization.yaml
|
kubectl create secret docker-registry <name> --docker-server=DOCKER_REGISTRY_SERVER --docker-username=DOCKER_USER --docker-password=DOCKER_PASSWORD --docker-email=DOCKER_EMAIL
|
||||||
secretGenerator:
|
|
||||||
- name: myregistrykey
|
|
||||||
type: docker-registry
|
|
||||||
literals:
|
|
||||||
- docker-server=DOCKER_REGISTRY_SERVER
|
|
||||||
- docker-username=DOCKER_USER
|
|
||||||
- docker-password=DOCKER_PASSWORD
|
|
||||||
- docker-email=DOCKER_EMAIL
|
|
||||||
EOF
|
|
||||||
|
|
||||||
kubectl apply -k .
|
|
||||||
secret/myregistrykey-66h7d4d986 created
|
|
||||||
```
|
```
|
||||||
|
|
||||||
If you already have a Docker credentials file then, rather than using the above
|
If you already have a Docker credentials file then, rather than using the above
|
||||||
|
|||||||
Reference in New Issue
Block a user