Skip to content

Commit a62c27c

Browse files
author
Dipankar Das
committed
added note for secret to be in same namespace as workloads
secret is used to have authenticate with the private Container registry it should be in the same namespace which container the workloads Signed-off-by: Dipankar Das <[email protected]>
1 parent 815af5d commit a62c27c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

content/en/docs/tasks/configure-pod-container/pull-image-private-registry.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,9 @@ kubectl get pod private-reg
211211
```
212212

213213
{{< note >}}
214-
In case the Pod fails to start with the status `ImagePullBackOff`, view the Pod events:
214+
Please ensure that the Pod or Deployment, and so on, created within a particular namespace contains the necessary secret in that same namespace.
215+
216+
Also, in case the Pod fails to start with the status `ImagePullBackOff`, view the Pod events:
215217
```shell
216218
kubectl describe pod private-reg
217219
```
@@ -242,4 +244,4 @@ Events:
242244
* Learn more about [using a private registry](/docs/concepts/containers/images/#using-a-private-registry).
243245
* Learn more about [adding image pull secrets to a service account](/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account).
244246
* See [kubectl create secret docker-registry](/docs/reference/generated/kubectl/kubectl-commands/#-em-secret-docker-registry-em-).
245-
* See the `imagePullSecrets` field within the [container definitions](/docs/reference/kubernetes-api/workload-resources/pod-v1/#containers) of a Pod
247+
* See the `imagePullSecrets` field within the [container definitions](/docs/reference/kubernetes-api/workload-resources/pod-v1/#containers) of a Pod

0 commit comments

Comments
 (0)