From 2097832bcc862a4723c40f7a5f3f58dcc085e30a Mon Sep 17 00:00:00 2001 From: Ville Aikas <11279988+vaikas@users.noreply.github.com> Date: Tue, 31 Mar 2020 10:34:51 -0700 Subject: [PATCH] edit -> patch (#2356) --- docs/serving/deploying/private-registry.md | 32 ++++------------------ 1 file changed, 5 insertions(+), 27 deletions(-) diff --git a/docs/serving/deploying/private-registry.md b/docs/serving/deploying/private-registry.md index b6a99a314..c3e7e674a 100644 --- a/docs/serving/deploying/private-registry.md +++ b/docs/serving/deploying/private-registry.md @@ -78,35 +78,13 @@ You need: of your Knative cluster are use by your revisions unless [`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 - kubectl edit serviceaccount default --namespace default - ``` - - 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 + kubectl patch serviceaccount default -p "{\"imagePullSecrets\": [{\"name\": \"container-registry\"}]}" ``` 1. Deploy the updated service account to your Knative cluster: