mirror of https://github.com/knative/docs.git
edit -> patch (#2356)
This commit is contained in:
parent
3c5fa60c75
commit
2097832bcc
|
@ -78,35 +78,13 @@ You need:
|
||||||
of your Knative cluster are use by your revisions unless
|
of your Knative cluster are use by your revisions unless
|
||||||
[`serviceAccountName`](../spec/knative-api-specification-1.0.md) is specified.
|
[`serviceAccountName`](../spec/knative-api-specification-1.0.md) is specified.
|
||||||
|
|
||||||
1. Run the following command to edit your `default` service account:
|
1. Run the following command to modify your `default` service account:
|
||||||
|
|
||||||
|
For example, if you named your secrets `container-registry`, then you
|
||||||
|
patch it with this.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl edit serviceaccount default --namespace default
|
kubectl patch serviceaccount default -p "{\"imagePullSecrets\": [{\"name\": \"container-registry\"}]}"
|
||||||
```
|
|
||||||
|
|
||||||
1. Add the `imagePullSecrets` element in your `default` service account :
|
|
||||||
|
|
||||||
For example, if you named your secrets `container-registry`, then you
|
|
||||||
add the following lines to your service account configuration:
|
|
||||||
|
|
||||||
```
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: container-registry
|
|
||||||
```
|
|
||||||
|
|
||||||
Example service account with `imagePullSecrets`:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: default
|
|
||||||
namespace: default
|
|
||||||
...
|
|
||||||
secrets:
|
|
||||||
- name: default-token-zd84v
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: container-registry
|
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Deploy the updated service account to your Knative cluster:
|
1. Deploy the updated service account to your Knative cluster:
|
||||||
|
|
Loading…
Reference in New Issue