Kubernetes · Resource
PodDisruptionBudget
A PodDisruptionBudget limits how many matching Pods may be unavailable during voluntary disruptions. It helps keep a replicated application available during maintenance and other planned actions.
Last updated
- Since
- v1.21
Syntax
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: <name>
spec:
selector: <label selector>
minAvailable: <number or percentage>
# or maxUnavailable: <number or percentage>In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
PodEviction APIkubectl drainDeploymentStatefulSetPodDisruptionBudgetSpecPodDisruptionBudgetStatus