Why this matters
PDBs preserve availability during voluntary disruptions such as node drains.
For Deployments with replicas ≥ 2, include a PodDisruptionBudget with minAvailable or maxUnavailable set.
PDBs preserve availability during voluntary disruptions such as node drains.
Side-by-side examples engineers can pattern-match during review.
apiVersion: apps/v1
kind: Deployment
metadata:
name: auth
spec:
replicas: 3
template: { }
# (no PDB)apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: auth-pdb
spec:
maxUnavailable: 1
selector:
matchLabels:
app: auth
kind: PodDisruptionBudget
spec:
minAvailable: 2kind: Deployment
spec:
replicas: 3From the same buckets as this rule.