Merge branch 'master' of https://github.com/kubernetes/kubernetes.github.io into release-1.7
* 'master' of https://github.com/kubernetes/kubernetes.github.io: fixes typos and corrects links in the minikube guide (#4051) Use native patch functionality instead of JQ add the introduce of using wildcard '*' in nonResourceURL Rephrase doc about Deployment .spec.rollbackTo field create-cluster-kubeadm: add ToC using task template install-kubeadm: fix What's Next link text
This commit is contained in:
@@ -175,14 +175,10 @@ NAME TYPE DATA AGE
|
||||
myregistrykey kubernetes.io/.dockerconfigjson 1 1d
|
||||
```
|
||||
|
||||
Next, read/modify/write the 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.
|
||||
|
||||
Automated version using json and the jq utility:
|
||||
```shell
|
||||
kubectl get serviceaccounts default -o json |
|
||||
jq 'del(.metadata.resourceVersion)'|
|
||||
jq 'setpath(["imagePullSecrets"];[{"name":"myregistrykey"}])' |
|
||||
kubectl replace serviceaccount default -f -
|
||||
kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "myregistrykey"}]}'
|
||||
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user