Skip to content

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 case
  • targetSelector (list): Define the pod(s) to assign the secret
  • targetSelector (empty): Assign the secret to the primary pod

imagePullSecret

Define image pull secrets

KeyimagePullSecret
Typemap
Required
Helm tpl
Default{}

Example

imagePullSecret: {}

$name

Define image pull secret

KeyimagePullSecret.$name
Typemap
Required
Helm tpl
Default{}

Example

imagePullSecret:
pull-secret-name: {}

enabled

Enables or Disables the image pull secret

KeyimagePullSecret.$name.enabled
Typebool
Required
Helm tpl
Defaultfalse

Example

imagePullSecret:
pull-secret-name:
enabled: true

namespace

Define the namespace for this object

KeyimagePullSecret.$name.namespace
Typestring
Required
Helm tpl✅ (On value only)
Default""

Example

imagePullSecret:
pull-secret-name:
namespace: some-namespace

labels

Additional labels for image pull secret

KeyimagePullSecret.$name.labels
Typemap
Required
Helm tpl✅ (On value only)
Default{}

Example

imagePullSecret:
pull-secret-name:
labels:
key: value

annotations

Additional annotations for image pull secret

KeyimagePullSecret.$name.annotations
Typemap
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

KeyimagePullSecret.$name.targetSelectAll
Typebool
Required
Helm tpl
Defaultunset

Example

imagePullSecret:
pull-secret-name:
targetSelectAll: true

targetSelector

Define the pod(s) to assign the secret

KeyimagePullSecret.$name.targetSelector
Typelist 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

KeyimagePullSecret.$name.data
Typemap
Required
Helm tpl
Default{}

Example

imagePullSecret:
pull-secret-name:
data: {}

data.registry

Define the registry of the image pull secret

KeyimagePullSecret.$name.data.registry
Typestring
Required
Helm tpl
Default""

Example

imagePullSecret:
pull-secret-name:
data:
registry: quay.io

data.username

Define the username of the image pull secret

KeyimagePullSecret.$name.data.username
Typestring
Required
Helm tpl
Default""

Example

imagePullSecret:
pull-secret-name:
data:
username: my_user

data.password

Define the password of the image pull secret

KeyimagePullSecret.$name.data.password
Typestring
Required
Helm tpl
Default""

Example

imagePullSecret:
pull-secret-name:
data:
password: my_pass

data.email

Define the email of the image pull secret

KeyimagePullSecret.$name.data.email
Typestring
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