Skip to content

Commit ff853e7

Browse files
authored
Merge pull request #35391 from Rishit-dagli/Rishit-dagli-imagePullSecret-type
Add the accepted types for `imagePullSecrets`
2 parents f170dd7 + 6fb2875 commit ff853e7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

content/en/docs/concepts/containers/images.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ in private registries.
275275
{{< /note >}}
276276

277277
Kubernetes supports specifying container image registry keys on a Pod.
278+
`imagePullSecrets` must all be in the same namespace as the Pod. The referenced
279+
Secrets must be of type `kubernetes.io/dockercfg` or `kubernetes.io/dockerconfigjson`.
278280

279281
#### Creating a Secret with a Docker config
280282

@@ -303,7 +305,8 @@ so this process needs to be done one time per namespace.
303305
#### Referring to an imagePullSecrets on a Pod
304306

305307
Now, you can create pods which reference that secret by adding an `imagePullSecrets`
306-
section to a Pod definition.
308+
section to a Pod definition. Each item in the `imagePullSecrets` array can only
309+
reference a Secret in the same namespace.
307310

308311
For example:
309312

0 commit comments

Comments
 (0)