Configure a PodDisruptionBudget to protect a workload during voluntary disruptions

domain: kubernetes.io · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create a `PodDisruptionBudget` manifest with `apiVersion: policy/v1` and a `selector.matchLabels` targeting the workload pods
  2. Set either `spec.minAvailable` (minimum pods that must remain) or `spec.maxUnavailable` (maximum pods that can be disrupted); do not set both
  3. Apply with `kubectl apply` and verify with `kubectl get pdb`
  4. Check `ALLOWED DISRUPTIONS` column — zero means no voluntary disruption is currently permitted
  5. Test by draining a node with `kubectl drain --ignore-daemonsets` and confirming the PDB prevents eviction beyond the threshold

Known gotchas

Related routes

Configure a Kubernetes PodDisruptionBudget to protect a stateful application during node drain and rolling upgrades
kubernetes.io · 5 steps · unrated
Configure PodDisruptionBudget unhealthyPodEvictionPolicy to unblock node drains with already-unhealthy pods
kubernetes.io · 5 steps · unrated
Configure Airflow KubernetesExecutor with pod templates and per-task pod overrides for resource isolation
airflow.apache.org · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans