Updated configure-service-account (#7147)
Error from server resolved by escaping kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "myregistrykey"}]}' JSON string by '\'
This commit is contained in:
committed by
k8s-ci-robot
parent
4a20457e6e
commit
731b87f3e2
@@ -178,7 +178,7 @@ myregistrykey kubernetes.io/.dockerconfigjson 1 1d
|
|||||||
Next, modify the default service account for the namespace to use this secret as an imagePullSecret.
|
Next, modify the default service account for the namespace to use this secret as an imagePullSecret.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "myregistrykey"}]}'
|
kubectl patch serviceaccount default -p '{\"imagePullSecrets\": [{\"name\": \"acrkey\"}]}'
|
||||||
```
|
```
|
||||||
|
|
||||||
Interactive version requiring manual edit:
|
Interactive version requiring manual edit:
|
||||||
|
|||||||
Reference in New Issue
Block a user