Skip to content

Pod Disruption Budget

Appears in

  • .Values.podDisruptionBudget

Naming scheme

  • $FullName-$podDisruptionBudgetName (release-name-chart-name-podDisruptionBudgetName)

podDisruptionBudget

Create Pod Disruption Budget objects

KeypodDisruptionBudget
Typemap
Required
Helm tpl
Default{}

Example

podDisruptionBudget: {}

$name

Define Pod Disruption Budget

KeypodDisruptionBudget.$name
Typemap
Required
Helm tpl
Default{}

Example

podDisruptionBudget:
pdb-name: {}

enabled

Enables or Disables the Pod Disruption Budget

KeypodDisruptionBudget.$name.enabled
Typebool
Required
Helm tpl
Defaultfalse

Example

podDisruptionBudget:
pdb-name:
enabled: true

namespace

Define the namespace for this object

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

Example

podDisruptionBudget:
pdb-name:
namespace: some-namespace

labels

Additional labels for Pod Disruption Budget

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

Example

podDisruptionBudget:
pdb-name:
labels:
key: value

annotations

Additional annotations for Pod Disruption Budget

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

Example

podDisruptionBudget:
pdb-name:
annotations:
key: value

minAvailable

Define the minAvailable.

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

Example

podDisruptionBudget:
pdb-name:
minAvailable: 1

maxUnavailable

Define the maxUnavailable.

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

Example

podDisruptionBudget:
pdb-name:
maxUnavailable: 1

unhealthyPodEvictionPolicy

Define the unhealthyPodEvictionPolicy

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

Valid Values:

  • IfHealthyBudget
  • AlwaysAllow

Example

podDisruptionBudget:
pdb-name:
unhealthyPodEvictionPolicy: IfHealthyBudget

Full Examples

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