Service Account
Appears in
Section titled “Appears in”.Values.serviceAccount
Naming scheme
Section titled “Naming scheme”- Primary:
$FullName(release-name-chart-name) - Non-Primary:
$FullName-$ServiceAccountName(release-name-chart-name-ServiceAccountName)
Target Selector
Section titled “Target Selector”targetSelectAll(bool): Whether to assign the serviceAccount to all pods or not.targetSelectoris ignored in this casetargetSelector(list): Define the pod(s) to assign the serviceAccounttargetSelector(empty): Assign the serviceAccount to the primary pod
serviceAccount
Section titled “serviceAccount”Create serviceAccount objects
| Key | serviceAccount |
| Type | map |
| Required | ❌ |
Helm tpl | ❌ |
| Default | {} |
Example
serviceAccount: {}serviceAccount.$name
Section titled “serviceAccount.$name”Define serviceAccount
| Key | serviceAccount.$name |
| Type | map |
| Required | ✅ |
Helm tpl | ❌ |
| Default | {} |
Example
serviceAccount: sa-name: {}enabled
Section titled “enabled”Enables or Disables the serviceAccount
| Key | serviceAccount.$name.enabled |
| Type | bool |
| Required | ✅ |
Helm tpl | ✅ |
| Default | false |
Example
serviceAccount: sa-name: enabled: trueprimary
Section titled “primary”Sets the serviceAccount as primary
| Key | serviceAccount.$name.primary |
| Type | bool |
| Required | ❌ |
Helm tpl | ❌ |
| Default | false |
Example
serviceAccount: sa-name: primary: truenamespace
Section titled “namespace”Define the namespace for this object
| Key | serviceAccount.$name.namespace |
| Type | string |
| Required | ❌ |
Helm tpl | ✅ |
| Default | "" |
Example
serviceAccount: sa-name: namespace: some-namespacelabels
Section titled “labels”Additional labels for service account
| Key | serviceAccount.$name.labels |
| Type | map |
| Required | ❌ |
Helm tpl | ✅ (On value only) |
| Default | {} |
Example
serviceAccount: sa-name: labels: key: valueannotations
Section titled “annotations”Additional annotations for service account
| Key | serviceAccount.$name.annotations |
| Type | map |
| Required | ❌ |
Helm tpl | ✅ (On value only) |
| Default | {} |
Example
serviceAccount: sa-name: annotations: key: valuetargetSelectAll
Section titled “targetSelectAll”Whether to assign the serviceAccount to all pods or not
| Key | serviceAccount.$name.targetSelectAll |
| Type | bool |
| Required | ❌ |
Helm tpl | ❌ |
| Default | unset |
Example
serviceAccount: sa-name: targetSelectAll: truetargetSelector
Section titled “targetSelector”Define the pod(s) to assign the serviceAccount
| Key | serviceAccount.$name.targetSelector |
| Type | list of string |
| Required | ❌ |
Helm tpl | ❌ |
| Default | [] |
Example
serviceAccount: sa-name: targetSelector: - workload-name1 - workload-name2Full Examples
Section titled “Full Examples”serviceAccount: sa-name: enabled: true primary: true namespace: some-namespace labels: key: value keytpl: "{{ .Values.some.value }}" annotations: key: value keytpl: "{{ .Values.some.value }}" targetSelectAll: true
other-sa-name: enabled: true namespace: some-namespace targetSelector: - pod-name - other-pod-name