Skip to content

Commit 22030b4

Browse files
Jamstahsalaxander
andauthored
Clarify image pull secret documentation (#48718)
* Clarify image pull secret documentation The statement about missing pull secrets is incorrect, the kubelet will still attempt to pull the image if a pull secret is missing. Added some information about how multiple pull secrets are handled. Signed-off-by: James Hewitt <[email protected]> * Update content/en/docs/tasks/configure-pod-container/pull-image-private-registry.md Co-authored-by: Xander Grzywinski <[email protected]> * Clarify what happens if no pull secret matches --------- Signed-off-by: James Hewitt <[email protected]> Co-authored-by: Xander Grzywinski <[email protected]>
1 parent 897d0df commit 22030b4

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ Credentials can be provided in several ways:
261261
- all pods can use any images cached on a node
262262
- requires root access to all nodes to set up
263263
- Specifying ImagePullSecrets on a Pod
264-
- only pods which provide own keys can access the private registry
264+
- only pods which provide their own keys can access the private registry
265265
- Vendor-specific or local extensions
266266
- if you're using a custom node configuration, you (or your cloud
267267
provider) can implement your mechanism for authenticating the node

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,6 @@ kubectl describe pod private-reg
227227

228228
If you then see an event with the reason set to `FailedToRetrieveImagePullSecret`,
229229
Kubernetes can't find a Secret with name (`regcred`, in this example).
230-
If you specify that a Pod needs image pull credentials, the kubelet checks that it can
231-
access that Secret before attempting to pull the image.
232230

233231
Make sure that the Secret you have specified exists, and that its name is spelled properly.
234232
```shell
@@ -238,6 +236,14 @@ Events:
238236
... FailedToRetrieveImagePullSecret ... Unable to retrieve some image pull secrets (<regcred>); attempting to pull the image may not succeed.
239237
```
240238

239+
## Using images from multiple registries
240+
241+
A pod can have multiple containers, each container image can be from a different registry.
242+
You can use multiple `imagePullSecrets` with one pod, and each can contain multiple credentials.
243+
244+
The image pull will be attempted using each credential that matches the registry.
245+
If no credentials match the registry, the image pull will be attempted without authorization or using custom runtime specific configuration.
246+
241247
## {{% heading "whatsnext" %}}
242248

243249
* Learn more about [Secrets](/docs/concepts/configuration/secret/)

0 commit comments

Comments
 (0)