From 72451428747dd1ba58e34fc43b8c9ed07b5af2ed Mon Sep 17 00:00:00 2001 From: Sylvain COULOMBEL Date: Tue, 19 May 2020 13:52:59 +0200 Subject: [PATCH] Task configure sa: 'Add image pull secrets to a service account' minor fix --- .../configure-pod-container/configure-service-account.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/en/docs/tasks/configure-pod-container/configure-service-account.md b/content/en/docs/tasks/configure-pod-container/configure-service-account.md index 5a688f31bc..021a8feb22 100644 --- a/content/en/docs/tasks/configure-pod-container/configure-service-account.md +++ b/content/en/docs/tasks/configure-pod-container/configure-service-account.md @@ -263,14 +263,14 @@ kubectl replace serviceaccount default -f ./sa.yaml Now, when a new Pod is created in the current namespace and using the default ServiceAccount, the new Pod has its `spec.imagePullSecrets` field set automatically: -````shell +```shell kubectl run nginx --image=nginx --restart=Never -kubectl get pod nginx -o=jsonpath='{.spec.imagePullSecrets[0].name}' -```` +kubectl get pod nginx -o=jsonpath='{.spec.imagePullSecrets[0].name}{"\n"}' +``` The output is: -```shell +``` myregistrykey ```