Skip to content

Commit 898f325

Browse files
authored
Merge pull request #21064 from scoulomb/imgPullSecSa2
Task configure sa: 'Add image pull secrets to a service account' mino…
2 parents c260992 + 7245142 commit 898f325

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,14 +263,14 @@ kubectl replace serviceaccount default -f ./sa.yaml
263263

264264
Now, when a new Pod is created in the current namespace and using the default ServiceAccount, the new Pod has its `spec.imagePullSecrets` field set automatically:
265265

266-
````shell
266+
```shell
267267
kubectl run nginx --image=nginx --restart=Never
268-
kubectl get pod nginx -o=jsonpath='{.spec.imagePullSecrets[0].name}'
269-
````
268+
kubectl get pod nginx -o=jsonpath='{.spec.imagePullSecrets[0].name}{"\n"}'
269+
```
270270

271271
The output is:
272272

273-
```shell
273+
```
274274
myregistrykey
275275
```
276276

0 commit comments

Comments
 (0)