Skip to content

Pod Disruption Budget

  • .Values.podDisruptionBudget
  • $FullName-$podDisruptionBudgetName (release-name-chart-name-podDisruptionBudgetName)

Create Pod Disruption Budget objects

KeypodDisruptionBudget
Typemap
Required
Helm tpl
Default{}

Example

podDisruptionBudget: {}

Define Pod Disruption Budget

KeypodDisruptionBudget.$name
Typemap
Required
Helm tpl
Default{}

Example

podDisruptionBudget:
pdb-name: {}

Enables or Disables the Pod Disruption Budget

KeypodDisruptionBudget.$name.enabled
Typebool
Required
Helm tpl
Defaultfalse

Example

podDisruptionBudget:
pdb-name:
enabled: true

Define the namespace for this object

KeypodDisruptionBudget.$name.namespace
Typestring
Required
Helm tpl
Default""

Example

podDisruptionBudget:
pdb-name:
namespace: some-namespace

Additional labels for Pod Disruption Budget

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

Example

podDisruptionBudget:
pdb-name:
labels:
key: value

Additional annotations for Pod Disruption Budget

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

Example

podDisruptionBudget:
pdb-name:
annotations:
key: value

Define the minAvailable.

KeypodDisruptionBudget.$name.minAvailable
Typeint or string
Required
Helm tpl
Default""

Example

podDisruptionBudget:
pdb-name:
minAvailable: 1

Define the maxUnavailable.

KeypodDisruptionBudget.$name.maxUnavailable
Typeint or string
Required
Helm tpl
Default""

Example

podDisruptionBudget:
pdb-name:
maxUnavailable: 1

Define the unhealthyPodEvictionPolicy

KeypodDisruptionBudget.$name.unhealthyPodEvictionPolicy
Typestring
Required
Helm tpl
Default""

Valid Values:

  • IfHealthyBudget
  • AlwaysAllow

Example

podDisruptionBudget:
pdb-name:
unhealthyPodEvictionPolicy: IfHealthyBudget

podDisruptionBudget:
pdb-name:
enabled: true
labels:
key: value
keytpl: "{{ .Values.some.value }}"
annotations:
key: value
keytpl: "{{ .Values.some.value }}"
minAvailable: 1
maxUnavailable: 1
unhealthyPodEvictionPolicy: IfHealthyBudget
other-pdb-name:
enabled: true
namespace: some-namespace
minAvailable: 1