Scheduling and nodesLesson 9 of 10
  1. Requests, limits and quotas, not reconciled
  2. QoS classes and node-pressure eviction, not reconciled
  3. cgroups, memory pressure and the OOM killer, not reconciled
  4. How the scheduler places a pod, not reconciled
  5. Affinity, taints and tolerations, not reconciled
  6. Topology spread constraints, not reconciled
  7. Priority and preemption, not reconciled
  8. Nodes and the kubelet, not reconciled
  9. Disruptions and PodDisruptionBudgets, not reconciled
    1. Voluntary versus involuntary
    2. The Eviction API
    3. PDB fields
    4. What PDBs ignore
    5. Blocked drains
    6. unhealthyPodEvictionPolicy (GA 1.31)
    7. Testing resilience
  10. Cluster autoscaling, not reconciled

Disruptions and PodDisruptionBudgets

A PodDisruptionBudget limits how many of an application's pods voluntary evictions may take down at once. It gates the Eviction API and nothing else, so deletes, rollouts and node failures pass straight through it.

  • 22 min
  • 4 objectives
  • 7 scenes
  • Includes an On AWS layer

Shows the lesson one block at a time. Arrow keys step, number keys jump to a scene, and Escape returns to the page where you were.

Pods stop for two kinds of reasons. Some are accidents: a machine dies, a kernel panics. Others are decisions: someone drains a node to patch it, an autoscaler removes a node it no longer needs. A PodDisruptionBudget lets an application owner put a limit on the second kind, so that routine maintenance never takes down more replicas than the application can lose. The limit is narrower than most people assume, and the gaps are where outages come from.

Reconcile, in 7 scenes

Voluntary versus involuntary

voluntary disruptionA pod removal that a person or automation chose to make, such as a drain, an upgrade or an autoscaler scale-down.

Involuntary disruptions are the ones nobody chose: hardware failure, a VM deleted by mistake or reclaimed by the provider, a kernel panic, a network partition that cuts a node off, and the kubelet evicting pods because the node ran out of memory or disk. A container killed by the kernel’s OOM killer belongs here too.

Voluntary disruptions come from deliberate actions. Application owners delete pods and Deployments and change pod templates, which restarts pods. Cluster administrators drain nodes for repair or upgrade, remove nodes to scale down, and remove pods to make room for others.

The distinction matters because a budget can only act on decisions. It cannot stop a disk from failing. What it can do is make every evicting tool wait when the application is already at its limit, which is why the classification has a second half: among voluntary disruptions, only the ones that go through the Eviction API are gated.

The Eviction API

evictionA request to the pods/eviction subresource asking the API server to delete a pod, subject to the PodDisruptionBudgets that cover it.

An eviction is a POST of a policy/v1 Eviction object to /api/v1/namespaces/NAMESPACE/pods/NAME/eviction. Think of it as a DELETE with a policy check in front. The API server answers in one of three ways:

  • 200 OK: the eviction is allowed and the pod is deleted gracefully, honouring its terminationGracePeriodSeconds. A pod that no budget covers is always allowed.
  • 429 Too Many Requests: allowing it would take the application below its budget. The caller should retry later.
  • 500 Internal Server Error: the request cannot be judged, most commonly because more than one PodDisruptionBudget selects the pod. kubectl drain does not retry this answer: it stops with This pod has more than one PodDisruptionBudget, which the eviction subresource does not support. Overlapping budgets therefore break every drain of those pods until one budget is removed or narrowed.

kubectl drain, Cluster Autoscaler, Karpenter and managed node upgrades all use this API, which is what makes a budget meaningful to them. A refusal goes back to the caller and nowhere else: the Kubernetes documentation describes no event for a blocked eviction, so searching events for one finds nothing. To see a block, read the evicting tool’s output or its own events (Karpenter reports Unconsolidatable events that name the blocking budget) and the budget’s status.disruptionsAllowed.

PDB fields

A PodDisruptionBudget in policy/v1 has a selector and exactly one of two counts:

  • spec.selector picks the pods, normally with the same labels the workload’s controller uses. In policy/v1, an empty selector {} matches every pod in the namespace.
  • spec.minAvailable is how many selected pods must remain available after an eviction.
  • spec.maxUnavailable is how many may be unavailable.

Either count can be an integer or a percentage string such as "50%". Percentages are rounded up, for both fields. With seven pods, minAvailable: "50%" requires four, and maxUnavailable: "30%" allows three, which is more than 30%. Setting both counts in one budget is rejected.

The policy/v1beta1 version was removed in Kubernetes 1.25. Manifests that still use it fail to apply, and the empty-selector meaning flipped with the move: in v1beta1 {} matched no pods.

Prefer maxUnavailable for workloads managed by one controller. It is computed against the controller’s desired replica count, so the budget keeps meaning “one at a time” when the workload scales from three replicas to thirty. minAvailable: 2 written for three replicas becomes “28 may go at once” at thirty.

The disruption controller in kube-controller-manager keeps the budget’s status current:

  • expectedPods: how many pods the budget expects, normally the owning workload’s desired replica count, found through the pods’ owner references.
  • currentHealthy: selected pods that are Ready.
  • desiredHealthy: the minimum number of healthy pods the budget requires.
  • disruptionsAllowed: currentHealthy minus desiredHealthy, never below zero.

kubectl get pdb prints only NAME, MIN AVAILABLE, MAX UNAVAILABLE, ALLOWED DISRUPTIONS and AGE. The health counts are in kubectl get pdb NAME -o yaml or kubectl describe pdb NAME. For dashboards and alerts, kube-state-metrics exports them as kube_poddisruptionbudget_status_current_healthy, kube_poddisruptionbudget_status_desired_healthy, kube_poddisruptionbudget_status_pod_disruptions_allowed and kube_poddisruptionbudget_status_expected_pods. These metrics come from kube-state-metrics, so a cluster without it has none of them.

A budget for a three-member StatefulSet that can lose one member at a time looks like this. Every StatefulSet pod template needs at least one container, and the selector must match the template’s labels:

apiVersion: v1
kind: Service
metadata:
  name: cache
spec:
  clusterIP: None
  selector:
    app: cache
  ports:
    - port: 6379
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: cache
spec:
  serviceName: cache
  replicas: 3
  selector:
    matchLabels:
      app: cache
  template:
    metadata:
      labels:
        app: cache
    spec:
      containers:
        - name: redis
          image: redis:7.4
          ports:
            - containerPort: 6379
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: cache
spec:
  maxUnavailable: 1
  unhealthyPodEvictionPolicy: AlwaysAllow
  selector:
    matchLabels:
      app: cache

The budget counts healthy pods and nothing more. It does not know that cache-0 might be the primary, and it does not order evictions by ordinal. Ordering comes from the StatefulSet’s podManagementPolicy and updateStrategy, and from the application.

What PDBs ignore

The budget is consulted by the Eviction API alone, so everything that removes pods another way passes straight through:

  • Direct deletes. kubectl delete pod, deleting a Deployment, a script calling DELETE. A delete is voluntary, but it is not an eviction.
  • Rollouts. A Deployment or StatefulSet update replaces pods through its controller, governed by its own strategy (maxUnavailable and maxSurge for a Deployment). Pods that a rollout takes down do count against the budget, though, so a drain that runs during a rollout may find disruptionsAllowed at zero.
  • Node failures and other involuntary disruptions. A budget cannot prevent them; they only reduce the healthy count. A budget at its limit when a node dies leaves the application below the minimum until replacements are Ready.
  • Node-pressure eviction and graceful node shutdown. Both are the kubelet acting locally, and the kubelet never calls the Eviction API.
  • Scheduler preemption. The scheduler prefers victims whose budgets survive but preempts anyway when it must.

Blocked drains

A budget that allows zero disruptions stops every drain of the nodes its pods run on. The two common ways to write one by accident are maxUnavailable: 0 and minAvailable equal to the replica count. Here is the first, saved as pdb-strict.yaml, against a three-replica web Deployment with a readiness probe:

apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: web
spec:
  maxUnavailable: 0
  selector:
    matchLabels:
      app: web
A budget that allows nothing
kubectl get pods -o wide
NAME                   READY   STATUS    RESTARTS   AGE   IP           NODE         NOMINATED NODE   READINESS GATES
web-5d5774865b-5z7ph   1/1     Running   0          20s   10.244.1.2   kx-worker    <none>           <none>
web-5d5774865b-dmf7z   1/1     Running   0          20s   10.244.2.2   kx-worker2   <none>           <none>
web-5d5774865b-wtbv5   1/1     Running   0          20s   10.244.3.2   kx-worker3   <none>           <none>
kubectl apply -f pdb-strict.yaml
poddisruptionbudget.policy/web created
kubectl get pdb
NAME   MIN AVAILABLE   MAX UNAVAILABLE   ALLOWED DISRUPTIONS   AGE
web    N/A             0                 0                     0s
kubectl drain kx-worker --ignore-daemonsets --timeout=15s
node/kx-worker cordoned
Warning: ignoring DaemonSet-managed Pods: kube-system/kindnet-gxcgn, kube-system/kube-proxy-rxfcc
evicting pod default/web-5d5774865b-5z7ph
error when evicting pods/"web-5d5774865b-5z7ph" -n "default" (will retry after 5s): Cannot evict pod as it would violate the pod's disruption budget.
evicting pod default/web-5d5774865b-5z7ph
error when evicting pods/"web-5d5774865b-5z7ph" -n "default" (will retry after 5s): Cannot evict pod as it would violate the pod's disruption budget.
evicting pod default/web-5d5774865b-5z7ph
error when evicting pods/"web-5d5774865b-5z7ph" -n "default" (will retry after 5s): Cannot evict pod as it would violate the pod's disruption budget.
evicting pod default/web-5d5774865b-5z7ph
error when evicting pods/"web-5d5774865b-5z7ph" -n "default" (will retry after 5s): Cannot evict pod as it would violate the pod's disruption budget.
There are pending pods in node "kx-worker" when an error occurred: error when evicting pods/"web-5d5774865b-5z7ph" -n "default": global timeout reached: 15s
pod/web-5d5774865b-5z7ph
error: unable to drain node "kx-worker" due to error: error when evicting pods/"web-5d5774865b-5z7ph" -n "default": global timeout reached: 15s, continuing command...
There are pending nodes to be drained:
 kx-worker
error: error when evicting pods/"web-5d5774865b-5z7ph" -n "default": global timeout reached: 15s

Drain cordoned the node, asked for the eviction, got the 429 message, and retried every five seconds until --timeout ran out. Without a timeout it would retry forever, which is what an upgrade stuck on a node looks like. The upstream documentation is explicit that this is permitted: zero allowed evictions means a node running one of those pods cannot be drained. If an application really must not be disrupted without its owner’s consent, that is the honest use of maxUnavailable: 0, together with an agreement that the operator asks first; the owner then deletes the budget to allow maintenance.

Try it under both budgets. The button drains the worker with the most of your pods through the Eviction API. With pdb-strict.yaml applied, the drain keeps retrying web’s pod on that node; with pdb.yaml applied instead, it evicts the pod and finishes.

Drain a worker under the budget

Each button runs its command on the cluster. This line follows what happens next.

Two ways around the block are shown next: one that bypasses the budget and one that fixes it. The transcript starts where the last one stopped, with the strict budget applied and kx-worker cordoned. The fixed budget, saved as pdb.yaml:

apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: web
spec:
  maxUnavailable: 1
  unhealthyPodEvictionPolicy: AlwaysAllow
  selector:
    matchLabels:
      app: web
Delete bypasses the budget; maxUnavailable lets the drain finish
kubectl apply -f pdb-strict.yaml
poddisruptionbudget.policy/web created
kubectl cordon kx-worker
node/kx-worker cordoned
kubectl delete pod web-5d5774865b-5z7ph
pod "web-5d5774865b-5z7ph" deleted from default namespace
kubectl wait --for=delete pod/web-5d5774865b-5z7ph --timeout=60s
pod/web-5d5774865b-5z7ph condition met
kubectl get pods -o wide
NAME                   READY   STATUS    RESTARTS   AGE   IP           NODE         NOMINATED NODE   READINESS GATES
web-5d5774865b-dmf7z   1/1     Running   0          22s   10.244.2.2   kx-worker2   <none>           <none>
web-5d5774865b-mwnsf   1/1     Running   0          2s    10.244.3.3   kx-worker3   <none>           <none>
web-5d5774865b-wtbv5   1/1     Running   0          22s   10.244.3.2   kx-worker3   <none>           <none>
kubectl uncordon kx-worker
node/kx-worker uncordoned
kubectl apply -f pdb.yaml
poddisruptionbudget.policy/web configured
kubectl get pdb
NAME   MIN AVAILABLE   MAX UNAVAILABLE   ALLOWED DISRUPTIONS   AGE
web    N/A             1                 1                     2s
kubectl drain kx-worker3 --ignore-daemonsets
node/kx-worker3 cordoned
Warning: ignoring DaemonSet-managed Pods: kube-system/kindnet-nz79s, kube-system/kube-proxy-vfl59
evicting pod default/web-5d5774865b-mwnsf
evicting pod default/web-5d5774865b-wtbv5
error when evicting pods/"web-5d5774865b-wtbv5" -n "default" (will retry after 5s): Cannot evict pod as it would violate the pod's disruption budget.
pod/web-5d5774865b-mwnsf evicted
evicting pod default/web-5d5774865b-wtbv5
pod/web-5d5774865b-wtbv5 evicted
node/kx-worker3 drained
kubectl get pods -o wide
NAME                   READY   STATUS    RESTARTS   AGE   IP           NODE         NOMINATED NODE   READINESS GATES
web-5d5774865b-dmf7z   1/1     Running   0          29s   10.244.2.2   kx-worker2   <none>           <none>
web-5d5774865b-g5zhk   1/1     Running   0          2s    10.244.1.4   kx-worker    <none>           <none>
web-5d5774865b-lf8gf   1/1     Running   0          7s    10.244.1.3   kx-worker    <none>           <none>

The delete succeeded with the strict budget still in place, which is the bypass in action. The drain of kx-worker3 shows the budget doing its job: both web pods on the node were evicted, but not together. The first eviction used the one allowed disruption, the second got a 429, and drain retried until the replacement for the first pod was running and Ready elsewhere. The budget counts a pod as healthy when its Ready condition is True, so a replacement that has started but is not yet Ready does not count. The same arithmetic catches single-replica workloads: a budget with minAvailable: 1 on a one-replica Deployment allows zero disruptions, so give such workloads a second replica or accept that the budget means “never”.

unhealthyPodEvictionPolicy (GA 1.31)

A budget protects healthy pods. What about pods that are Running but not Ready, such as a pod in CrashLoopBackOff? spec.unhealthyPodEvictionPolicy, stable since Kubernetes 1.31, decides:

  • IfHealthyBudget (the default): a running pod that is not healthy can be evicted only when the application is not disrupted, that is, when currentHealthy is at least desiredHealthy. The idea is to give an already struggling application’s pods every chance to recover.
  • AlwaysAllow: running pods that are not healthy can always be evicted, whatever the budget says.

The default has a sharp edge. Picture a three-replica Deployment with maxUnavailable: 1 after a bad config push leaves all three pods in CrashLoopBackOff. currentHealthy is 0 against a desiredHealthy of 2, so the application counts as disrupted, and under IfHealthyBudget none of its pods can be evicted. Every drain of a node that runs one of them hangs on a pod that serves nothing. With AlwaysAllow, drain evicts the broken pods at once, while healthy pods of a working application stay protected by the counts. The upstream documentation recommends AlwaysAllow so drains can evict misbehaving applications, which is why both budgets in this lesson set it. Pods in Pending, Succeeded or Failed phase are always evictable under either policy.

Testing resilience

Budgets, readiness probes and replica counts are claims about how an application survives disruption, and claims should be tested. Chaos experiments do that deliberately: kill pods, drain nodes, inject latency, and check that the service level holds.

Two open-source projects are common. LitmusChaos 3.x is driven from its ChaosCenter UI; on the cluster it uses the ChaosEngine resource to bind an experiment to a target, ChaosExperiment to define the fault and ChaosResult to record the outcome, all in litmuschaos.io/v1alpha1. Chaos Mesh defines a resource per fault type. Both are CNCF incubating projects.

Match the experiment to the claim you are testing:

  • To test a budget, evict. A pod-kill experiment that deletes pods bypasses budgets exactly as kubectl delete does, so it proves nothing about them. Drain a node, or call the Eviction API.
  • To test node loss, wait for the real timeline. Pods are not rescheduled the moment a node dies. The node turns Ready=Unknown after the 50-second node-monitor-grace-period (the default since Kubernetes 1.32; 40 seconds before), gets the node.kubernetes.io/unreachable:NoExecute taint, and its pods are evicted when their automatic 300-second toleration expires. Deployment pods are then replaced; StatefulSet pods wait until the old pod is confirmed gone by node deletion or the node.kubernetes.io/out-of-service taint. An experiment that ends after two minutes measures none of that.
  • Watch the budget during the run. status.disruptionsAllowed falling to zero and recovering is the budget working; staying at zero means the next drain will hang.

Block a drain and unblock it on your cluster

  1. kubectl --context kind-kx create deployment shop --image=nginx:1.30 --replicas=3
  2. kubectl --context kind-kx create pdb shop --selector=app=shop --max-unavailable=0
  3. kubectl --context kind-kx get pdb shop
  4. kubectl --context kind-kx drain kx-worker --ignore-daemonsets --timeout=20s
  5. kubectl --context kind-kx patch pdb shop --type=merge -p '{"spec":{"maxUnavailable":1,"unhealthyPodEvictionPolicy":"AlwaysAllow"}}'
  6. kubectl --context kind-kx drain kx-worker --ignore-daemonsets
  7. kubectl --context kind-kx uncordon kx-worker
  8. kubectl --context kind-kx delete pdb,deployment shop

For your own kind cluster kx: copy a command and paste it into your terminal. Run in the simulator runs the same command in this page's simulated cluster instead; nothing on this page touches your machine. If a shop pod runs on kx-worker, the first drain gives up after 20 seconds and leaves the node cordoned. The second succeeds once the budget allows one disruption.

Actual state

Check your understanding

5 checks

Your first answer to each check is the one that counts. After a miss you can answer again; passing every check reconciles the lesson.

  1. Check 1 of 5

    Which of these is an involuntary disruption?

  2. Check 2 of 5

    A Deployment has three replicas and a budget with maxUnavailable: 1. You run kubectl rollout restart. What limits how many pods go down at once?

  3. Check 3 of 5

    Two PodDisruptionBudgets in the same namespace both select the pod api-7d9c-x2k4f. What does the Eviction API do when a drain tries to evict it?

  4. Check 4 of 5

  5. Check 5 of 5

    Check runs your command on a private cluster; what it prints shows here.

Lesson not yet reconciled

Desired: 4 objectives, 0 metReconciled: 4 of 4 objectives met

  • Classify a disruption as voluntary or involuntary. (not yet met)
  • Write a PodDisruptionBudget with minAvailable or maxUnavailable that still lets drains finish. (not yet met)
  • Explain that budgets gate only the Eviction API, so deletes and rollouts bypass them. (not yet met)
  • Set unhealthyPodEvictionPolicy so crash-looping pods do not block maintenance. (not yet met)

Pass every check above to reconcile this lesson.

Every check has passed, so the desired state is met. First-try accuracy: 0 of 5. This lesson's review cards are in your queue.

Practice

Put this lesson to work on the simulated cluster. Everything runs in your browser, with nothing to install.

Changed since the notes

This lesson draws on an earlier set of study notes. Where the documentation contradicts a claim in them, qualifies it or has moved past it, the claim is listed here with the corrected statement and the source it was checked against.

Show 17 corrections
  1. Stale, true once, no longerChaos Engineering Introduction

    The notes saidAWS Fault Injection Simulator is AWS's managed chaos service for EC2, ECS, EKS (old service name).

    CorrectedThe service is AWS Fault Injection Service (FIS; formerly Fault Injection Simulator; managed policy names still say AWSFaultInjectionSimulator…). EKS actions: aws:eks:pod-delete, pod-cpu-stress, pod-memory-stress, pod-io-stress, pod-network-latency, pod-network-packet-loss, pod-network-blackhole-port, terminate-nodegroup-instances (managed node groups only) and inject-kubernetes-custom-resource (runs a Chaos Mesh or Litmus ChaosEngine). Not supported on EKS Anywhere, Outposts, Wavelength or Hybrid Nodes.

    Sourcedocs.aws.amazon.com/fis/latest/userguide/fis-actions-reference.html

  2. Nuance, true with conditionsChaos Engineering Introduction

    The notes saidLitmus provides ChaosExperiments as custom resources.

    CorrectedLitmus 3.x (3.33.0 as of 2026-10-15) is managed through ChaosCenter; on-cluster it uses ChaosEngine (binds an experiment to a target), ChaosExperiment and ChaosResult CRDs (litmuschaos.io/v1alpha1). Both Litmus and Chaos Mesh are CNCF Incubating projects (since January and February 2022) with no graduation.

    Sourcegithub.com/litmuschaos/litmus/releases/tag/3.33.0%20;%20https://www.cncf.io/projects/litmus/%20;%20https://www.cncf.io/projects/chaosmesh

  3. Nuance, true with conditionsChaos Engineering Introduction

    The notes saidIRSA tokens expire and refresh; test refresh failure.

    CorrectedIRSA still works, but EKS Pod Identity is the simpler recommended path: no OIDC provider, an association maps an IAM role to a service account, the trust principal is pods.eks.amazonaws.com, and the EKS Pod Identity Agent on each node serves credentials that SDKs refresh through the container credentials endpoint. Chaos tests should cover the agent DaemonSet being unavailable as well as projected-token refresh.

    Sourcedocs.aws.amazon.com/eks/latest/userguide/pod-identities.html

  4. Nuance, true with conditionsChaos Engineering Introduction

    The notes saidWhen a node becomes unavailable, pods are rescheduled.

    CorrectedOnly after a delay: the node controller marks Ready=Unknown after node-monitor-grace-period (50s default since Kubernetes 1.32; 40s earlier) and adds NoExecute unreachable/not-ready taints; pods are evicted only after their tolerationSeconds, which Kubernetes adds automatically as 300s. Controller-owned pods (Deployment/ReplicaSet) are then replaced; StatefulSet pods are not recreated elsewhere until the old pod is confirmed gone (node deletion or the node.kubernetes.io/out-of-service taint).

    Sourcekubernetes.io/docs/reference/node/node-status/%20;%20https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration

  5. Wrong, not trueChaos Engineering Introduction

    The notes saidAsks whether PodDisruptionBudgets maintain availability when a node becomes unavailable.

    CorrectedPDBs cannot prevent involuntary disruptions such as node failure; those disruptions only count against the budget. PDBs gate voluntary evictions made through the Eviction API (kubectl drain, cluster autoscalers, node upgrades).

    Sourcekubernetes.io/docs/concepts/workloads/pods/disruptions

  6. Nuance, true with conditionsChaos Engineering Introduction

    The notes saidPresents kubectl delete pod as chaos alongside PDB testing without noting that delete bypasses PDBs.

    CorrectedDeleting pods or Deployments bypasses PodDisruptionBudgets; only the Eviction API (kubectl drain, or POST to pods/<name>/eviction) is subject to them. To test a PDB, use eviction (drain or kubectl evict-style plugins), not delete. FIS aws:eks:pod-delete also deletes rather than evicts.

    Sourcekubernetes.io/docs/concepts/workloads/pods/disruptions/%20;%20https://kubernetes.io/docs/concepts/scheduling-eviction/api-eviction

  7. Nuance, true with conditionsPod Disruption Budgets in Practice

    The notes saidManaged node group rolling updates respect PDBs; nodes drained one at a time; upgrades may hang.

    CorrectedMNG updates drain in parallel up to updateConfig maxUnavailable or maxUnavailablePercentage (default 1 node, maximum 100). If pods cannot be evicted within 15 minutes the update fails with PodEvictionFailure (it does not hang) unless you pass --force, which deletes the pods. updateStrategy DEFAULT launches new nodes before terminating old ones; MINIMAL terminates first (useful for scarce GPU capacity).

    Sourcedocs.aws.amazon.com/eks/latest/userguide/managed-node-update-behavior.html%20;%20https://docs.aws.amazon.com/eks/latest/APIReference/API_NodegroupUpdateConfig.html

  8. Nuance, true with conditionsPod Disruption Budgets in Practice

    The notes said'PDB controller exposes metrics' kube_poddisruptionbudget_status_current_healthy, _desired_healthy, _pod_disruptions_allowed.

    CorrectedThe metric names are right but they come from kube-state-metrics, not a PDB controller. kube-state-metrics also exports kube_poddisruptionbudget_status_expected_pods, kube_poddisruptionbudget_status_observed_generation and kube_poddisruptionbudget_created (stable), plus labels/annotations/deletion_timestamp (experimental).

    Sourcegithub.com/kubernetes/kube-state-metrics/blob/main/docs/metrics/policy/poddisruptionbudget-metrics.md

  9. Nuance, true with conditionsPod Disruption Budgets in Practice

    The notes saidPDB API policy/v1 examples.

    Correctedpolicy/v1 is right (policy/v1beta1 was removed in 1.25; in v1 an empty selector {} matches every pod in the namespace, in v1beta1 it matched none). Add spec.unhealthyPodEvictionPolicy (stable since 1.31): IfHealthyBudget (default) or AlwaysAllow; the docs recommend AlwaysAllow so drains can evict misbehaving pods.

    Sourcekubernetes.io/docs/tasks/run-application/configure-pdb/%20;%20https://kubernetes.io/docs/reference/using-api/deprecation-guide/%20;%20https://kubernetes.io/docs/concepts/workloads/pods/disruptions

  10. Nuance, true with conditionsPod Disruption Budgets in Practice

    The notes saidCluster Autoscaler respects PDBs when scaling down.

    CorrectedCorrect, and Karpenter does too: it respects blocking PDBs while draining until the NodeClaim's terminationGracePeriod expires, honors the karpenter.sh/do-not-disrupt pod annotation for voluntary disruption, and limits disruption with NodePool budgets (default 10% of nodes); forced expiration and terminationGracePeriod can override PDBs.

    Sourcekarpenter.sh/docs/concepts/disruption

  11. Wrong, not truePod Disruption Budgets in Practice

    The notes saidMultiple PDBs selecting the same pod must all be satisfied.

    CorrectedThe Eviction API refuses to evict a pod covered by more than one PDB (HTTP 500, a misconfiguration), so overlapping selectors block drains entirely. Avoid overlapping PDBs except briefly while moving pods between budgets.

    Sourcekubernetes.io/docs/concepts/scheduling-eviction/api-eviction/%20;%20https://kubernetes.io/docs/tasks/run-application/configure-pdb

  12. Wrong, not truePod Disruption Budgets in Practice

    The notes saidDeployment rolling updates interact with PDBs via maxUnavailable.

    CorrectedWorkload rollouts (Deployment, StatefulSet) do not use the Eviction API and are not limited by PDBs; rollout behavior is governed by the workload's own strategy (maxUnavailable/maxSurge). Pods unavailable because of a rollout do count against the budget, which reduces disruptionsAllowed for concurrent evictions.

    Sourcekubernetes.io/docs/concepts/workloads/pods/disruptions

  13. Wrong, not truePod Disruption Budgets in Practice

    The notes saidPDBs ensure StatefulSet disruptions don't violate ordering guarantees.

    CorrectedA PDB only counts healthy pods matched by its selector; it knows nothing about ordinals or ordering. StatefulSet ordering comes from podManagementPolicy and updateStrategy.

    Sourcekubernetes.io/docs/concepts/workloads/pods/disruptions

  14. Wrong, not truePod Disruption Budgets in Practice

    The notes saidkubectl get pdb shows CURRENT HEALTHY / DESIRED HEALTHY / DISRUPTIONS ALLOWED.

    Correctedkubectl get pdb prints NAME, MIN AVAILABLE, MAX UNAVAILABLE, ALLOWED DISRUPTIONS, AGE. Health counts are in .status (currentHealthy, desiredHealthy, disruptionsAllowed, expectedPods, observedGeneration); use -o yaml or describe.

    Sourcekubernetes.io/docs/tasks/run-application/configure-pdb

  15. Nuance, true with conditionsPod Disruption Budgets in Practice

    The notes saidRecommends kubectl get events --field-selector reason=EvictionBlocked.

    CorrectedThe Eviction API answers a blocked eviction with HTTP 429 to the caller; the Kubernetes docs describe no event emitted for it and no 'EvictionBlocked' reason was found, so this query typically returns nothing. Watch the drain output, the PDB's status.disruptionsAllowed, or events from the evicting tool (for example Karpenter). Not confirmed: whether any component emits such a reason.

    Sourcekubernetes.io/docs/concepts/scheduling-eviction/api-eviction

  16. Wrong, not truePod Disruption Budgets in Practice

    The notes saidDrain walkthrough says the third eviction is blocked 'until a replacement starts'.

    CorrectedEviction stays blocked until the replacement pod becomes available (Ready, and for minReadySeconds if set), so the PDB's healthy count is back above the threshold; a started but not-ready pod does not count.

    Sourcekubernetes.io/docs/concepts/workloads/pods/disruptions

  17. Wrong, not truePod Disruption Budgets in Practice

    The notes saidStatefulSet example omits template.spec.containers.

    CorrectedPodSpec.containers is required ('There must be at least one container in a Pod'), so the manifest fails validation; add template.spec.containers with at least a name and image, and keep spec.selector matching the template labels.

    Sourcekubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1

Every correction across the guide, by note and topic.

Sources

Checked against kubernetes.io and AWS documentation for Kubernetes 1.37 on .

  1. kubernetes.io/docs/concepts/workloads/pods/disruptions
  2. kubernetes.io/docs/tasks/run-application/configure-pdb
  3. kubernetes.io/docs/concepts/scheduling-eviction/api-eviction
  4. kubernetes.io/docs/tasks/administer-cluster/safely-drain-node
  5. kubernetes.io/docs/reference/node/node-status
  6. kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration
  7. kubernetes.io/docs/reference/using-api/deprecation-guide
  8. github.com/kubernetes/kube-state-metrics/blob/main/docs/metrics/policy/poddisruptionbudget-metrics.md
  9. cncf.io/projects/litmus
  10. cncf.io/projects/chaosmesh
  11. karpenter.sh/docs/concepts/disruption
  12. docs.aws.amazon.com/eks/latest/userguide/managed-node-update-behavior.html
  13. docs.aws.amazon.com/eks/latest/userguide/managed-node-groups.html
  14. docs.aws.amazon.com/fis/latest/userguide/fis-actions-reference.html
  15. docs.aws.amazon.com/eks/latest/userguide/pod-identities.html

Disruptions and PodDisruptionBudgets

↓ ↑ step, 1 to 7 scene, Esc leave

kind cluster kxLast command: Nothing run yet