Merge pull request #35391 from Rishit-dagli/Rishit-dagli-imagePullSecret-type

Add the accepted types for `imagePullSecrets`
pull/36055/head
Kubernetes Prow Robot 2022-08-17 14:40:47 -07:00 committed by GitHub
commit ff853e7271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -275,6 +275,8 @@ in private registries.
{{< /note >}}
Kubernetes supports specifying container image registry keys on a Pod.
`imagePullSecrets` must all be in the same namespace as the Pod. The referenced
Secrets must be of type `kubernetes.io/dockercfg` or `kubernetes.io/dockerconfigjson`.
#### Creating a Secret with a Docker config
@ -303,7 +305,8 @@ so this process needs to be done one time per namespace.
#### Referring to an imagePullSecrets on a Pod
Now, you can create pods which reference that secret by adding an `imagePullSecrets`
section to a Pod definition.
section to a Pod definition. Each item in the `imagePullSecrets` array can only
reference a Secret in the same namespace.
For example: