Skip to content

Commit

Permalink
Updated configure-service-account
Browse files Browse the repository at this point in the history
Error from server resolved by escaping kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "myregistrykey"}]}' JSON string by '\'
  • Loading branch information
anubhakushwaha authored Jan 30, 2018
1 parent 4a20457 commit b812240
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.

```shell
kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "myregistrykey"}]}'
kubectl patch serviceaccount default -p '{\"imagePullSecrets\": [{\"name\": \"acrkey\"}]}'
```

Interactive version requiring manual edit:
Expand Down

0 comments on commit b812240

Please sign in to comment.