policy/v1
·PodDisruptionBudget
PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods
Click on Property Name to show the description, and Pink Types to expand schema.
Required properties are marked with *
Change History
Kubernetes v1.32
Kubernetes v1.31
Kubernetes v1.30
Kubernetes v1.29
Kubernetes v1.28
Kubernetes v1.27
8 properties have changed the description
- .metadata.annotations
- .metadata.labels
- .metadata.name
- .metadata.namespace
- .metadata.ownerReferences.name
- .metadata.ownerReferences.uid
- .metadata.uid
- .spec.unhealthyPodEvictionPolicy
Kubernetes v1.26
1 property has been added on this version
- .spec.unhealthyPodEvictionPolicy
Kubernetes v1.25
1 property has been removed on this version
- .metadata.clusterName
Kubernetes v1.24
5 properties have changed the description
- .metadata.clusterName
- .metadata.generateName
- .metadata.managedFields.time
- .metadata.ownerReferences.blockOwnerDeletion
- .metadata.selfLink
Kubernetes v1.23
Kubernetes v1.22
1 property has been added on this version
- .metadata.managedFields.subresource
Kubernetes v1.21
PodDisruptionBudget was first seen on this version of Kubernetes
Kubernetes v1.20
Kubernetes v1.19
Kubernetes v1.18
Kubernetes v1.17
Kubernetes v1.16
Kubernetes v1.15
Kubernetes v1.14
Kubernetes v1.13
Kubernetes v1.12
Kubernetes v1.11
Examples
There are 2 examples of PodDisruptionBudget that you can use as a starting point to create your own.
apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: pdb-pricing-calculator namespace: pricing spec: maxUnavailable: '20%' # 20% of the pods can be unavailable at any given time selector: matchLabels: app: pricing-calculator # The pods that this PDB will apply to
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: pdb-pricing-calculator
namespace: pricing
spec:
minAvailable: 4 # At least 4 pods should be available at any given time
selector:
matchLabels:
app: pricing-calculator # The pods that this PDB will apply to