Image Pull Secret
Appears in
.Values.imagePullSecret
Naming scheme
$FullName-$ImagePullSecretName
(release-name-chart-name-imagePullSecretName)
Target Selector
targetSelectAll
(bool): Whether to assign the secret to all pods or not.targetSelector
is ignored in this casetargetSelector
(list): Define the pod(s) to assign the secrettargetSelector
(empty): Assign the secret to the primary pod
imagePullSecret
Define image pull secrets
Key | imagePullSecret |
Type | map |
Required | ❌ |
Helm tpl | ❌ |
Default | {} |
Example
imagePullSecret: {}
$name
Define image pull secret
Key | imagePullSecret.$name |
Type | map |
Required | ✅ |
Helm tpl | ❌ |
Default | {} |
Example
imagePullSecret: pull-secret-name: {}
enabled
Enables or Disables the image pull secret
Key | imagePullSecret.$name.enabled |
Type | bool |
Required | ✅ |
Helm tpl | ✅ |
Default | false |
Example
imagePullSecret: pull-secret-name: enabled: true
existingSecret
Define the existing secret name
Key | imagePullSecret.$name.existingSecret |
Type | string |
Required | ❌ |
Helm tpl | ❌ |
Default | - |
Example
imagePullSecret: pull-secret-name: enabled: true existingSecret: some-existing-secret
namespace
Define the namespace for this object
Key | imagePullSecret.$name.namespace |
Type | string |
Required | ❌ |
Helm tpl | ✅ (On value only) |
Default | "" |
Example
imagePullSecret: pull-secret-name: namespace: some-namespace
labels
Additional labels for image pull secret
Key | imagePullSecret.$name.labels |
Type | map |
Required | ❌ |
Helm tpl | ✅ (On value only) |
Default | {} |
Example
imagePullSecret: pull-secret-name: labels: key: value
annotations
Additional annotations for image pull secret
Key | imagePullSecret.$name.annotations |
Type | map |
Required | ❌ |
Helm tpl | ✅ (On value only) |
Default | {} |
Example
imagePullSecret: pull-secret-name: annotations: key: value
targetSelectAll
Whether to assign the secret to all pods or not
Key | imagePullSecret.$name.targetSelectAll |
Type | bool |
Required | ❌ |
Helm tpl | ❌ |
Default | unset |
Example
imagePullSecret: pull-secret-name: targetSelectAll: true
targetSelector
Define the pod(s) to assign the secret
Key | imagePullSecret.$name.targetSelector |
Type | list of string |
Required | ❌ |
Helm tpl | ❌ |
Default | [] |
Example
imagePullSecret: pull-secret-name: targetSelector: - workload-name1 - workload-name2
data
Define the data of the image pull secret
Key | imagePullSecret.$name.data |
Type | map |
Required | ✅ |
Helm tpl | ❌ |
Default | {} |
Example
imagePullSecret: pull-secret-name: data: {}
data.registry
Define the registry of the image pull secret
Key | imagePullSecret.$name.data.registry |
Type | string |
Required | ✅ |
Helm tpl | ✅ |
Default | "" |
Example
imagePullSecret: pull-secret-name: data: registry: quay.io
data.username
Define the username of the image pull secret
Key | imagePullSecret.$name.data.username |
Type | string |
Required | ✅ |
Helm tpl | ✅ |
Default | "" |
Example
imagePullSecret: pull-secret-name: data: username: my_user
data.password
Define the password of the image pull secret
Key | imagePullSecret.$name.data.password |
Type | string |
Required | ✅ |
Helm tpl | ✅ |
Default | "" |
Example
imagePullSecret: pull-secret-name: data: password: my_pass
data.email
Define the email of the image pull secret
Key | imagePullSecret.$name.data.email |
Type | string |
Required | ✅ |
Helm tpl | ✅ |
Default | "" |
Example
imagePullSecret: pull-secret-name: data:
Full Examples
imagePullSecret:
pull-secret-name: enabled: true namespace: some-namespace labels: key: value keytpl: "{{ .Values.some.value }}" annotations: key: value keytpl: "{{ .Values.some.value }}" data: registry: quay.io username: my_user password: my_pass targetSelectAll: true
other-pull-secret-name: enabled: true namespace: some-namespace data: registry: "{{ .Values.my_registry }}" username: "{{ .Values.my_user }}" password: "{{ .Values.my_pass }}" email: "{{ .Values.my_mail }}" targetSelector: - workload-name1 - workload-name2