Skip to content

Commit

Permalink
Task configure sa: 'Add image pull secrets to a service account' mino…
Browse files Browse the repository at this point in the history
…r fix
  • Loading branch information
scoulomb committed May 19, 2020
1 parent c260992 commit 7245142
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -263,14 +263,14 @@ kubectl replace serviceaccount default -f ./sa.yaml

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:

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

The output is:

```shell
```
myregistrykey
```

Expand Down

0 comments on commit 7245142

Please sign in to comment.