Skip to content

Commit a416215

Browse files
authored
Merge pull request #42446 from pacoxu/pacoxu-patch-1
Make image registry hostname more obvious in example
2 parents 0cac3e8 + 9e09739 commit a416215

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/en/docs/tasks/configure-pod-container/configure-service-account.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ Next, verify it has been created. For example:
291291
[Specifying ImagePullSecrets on a Pod](/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod).
292292

293293
```shell
294-
kubectl create secret docker-registry myregistrykey --docker-server=DUMMY_SERVER \
294+
kubectl create secret docker-registry myregistrykey --docker-server=<registry name> \
295295
--docker-username=DUMMY_USERNAME --docker-password=DUMMY_DOCKER_PASSWORD \
296296
--docker-email=DUMMY_DOCKER_EMAIL
297297
```
@@ -361,7 +361,7 @@ Now, when a new Pod is created in the current namespace and using the default
361361
ServiceAccount, the new Pod has its `spec.imagePullSecrets` field set automatically:
362362

363363
```shell
364-
kubectl run nginx --image=nginx --restart=Never
364+
kubectl run nginx --image=<registry name>/nginx --restart=Never
365365
kubectl get pod nginx -o=jsonpath='{.spec.imagePullSecrets[0].name}{"\n"}'
366366
```
367367

0 commit comments

Comments
 (0)