Pod Disruption Budget
A Pod Disruption Budget (PDB) is a Kubernetes resource that ensures a certain number or percentage of pods in a deployment are available at any given time during disruptions. It helps maintain high availability during voluntary disruptions, such as maintenance or scaling events. For detailed information, you can visit the official Kubernetes documentation on Pod Disruption Budgets.
Terraform Mappings:
kubernetes_pod_disruption_budget_v1.metadata[0].name
Supported Methods​
GET
: Get a PodDisruptionBudget by nameLIST
: List all PodDisruptionBudgetsSEARCH
: Search for a PodDisruptionBudget using the ListOptions JSON format e.g. ("labelSelector": "app=wordpress")
Possible Links​
Pod
​
The PodDisruptionBudget is closely related to the Pod resource in Kubernetes. It defines the conditions under which Pod instances can be safely evicted. By creating a PDB, you ensure that a specific number of Pods remain operational, which directly impacts the scheduling and lifecycle management of Pods. This guarantees that critical applications remain running during planned disruptions or maintenance activities.