Kubernetes Pod Disruption Budgets: Why They Fail to Protect Applications During Cluster Maintenance
TL;DR — Key Takeaways
-
PDBs are not an availability guarantee: They restrict voluntary pod evictions but cannot ensure replacement pods are scheduled or applications remain healthy.
-
Maintenance can expose hidden weaknesses: Insufficient capacity, restrictive scheduling policies and misleading readiness probes can turn routine node maintenance into an outage.
-
Think beyond disruption budgets: Combine capacity planning, graceful termination, application-level monitoring and incremental node drains to improve Kubernetes reliability.
Kubernetes is designed to keep applications running when individual pods or nodes become unavailable. Controllers recreate failed pods, the scheduler places workloads on suitable nodes and deployment strategies help maintain application availability during updates. However, these mechanisms do not automatically guarantee uninterrupted service during planned cluster maintenance.
A common example occurs when a cluster administrator runs kubectl drain to prepare a worker node for maintenance. The command may remain blocked because Kubernetes cannot evict another pod without violating its PodDisruptionBudget (PDB). In other situations, the drain completes, but replacement pods fail to start due to insufficient cluster capacity, scheduling constraints, or unavailable application dependencies.
The problem is not necessarily an incorrectly configured PDB. A PDB controls a specific part of Kubernetes availability management. It limits certain voluntary pod disruptions, but it does not guarantee that replacement workloads will start, applications will remain healthy or traffic will continue flowing.
Understanding this distinction is essential when designing maintenance procedures for production clusters. Kubernetes is a container orchestration platform that coordinates scheduling, workload controllers and resource management. A PDB is one part of that system, not a complete application availability mechanism.
What a Kubernetes PDB Actually Controls
A PDB defines how many pods belonging to an application can be unavailable at the same time because of voluntary disruptions. It gives cluster administrators and automated maintenance tools a way to respect application availability requirements when evicting workloads.
Consider an application running five replicas across a Kubernetes cluster. If the application can tolerate one replica being unavailable during maintenance, its PDB can allow one voluntary disruption at a time.
Two fields are commonly used to express this requirement:
minAvailable: It specifies the minimum number or percentage of pods that must remain available after an eviction.
maxUnavailable: It specifies the maximum number or percentage of pods that can be unavailable at the same time.
A PDB using minAvailable might look like this:
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: payment-service-pdb
namespace: production
spec:
minAvailable: 4
selector:
matchLabels:
app: payment-service
If the associated workload has five replicas, this configuration allows Kubernetes to evict one healthy pod while maintaining at least four available replicas.
The alternative is to define the maximum number of unavailable replicas:
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: payment-service-pdb
namespace: production
spec:
maxUnavailable: 1
selector:
matchLabels:
app: payment-service
Both configurations express a similar availability requirement for this five-replica workload. However, the choice between them matters when replica counts change. A percentage-based budget can be useful for workloads that scale dynamically, while an absolute value may be easier to reason about for smaller, fixed-size services.
The PDB selector must also match the intended application pods. A selector that is too broad can include unrelated workloads, while an incorrect selector may leave important replicas outside the disruption policy.
The PDB configuration specification defines the supported fields and their behavior, including percentage-based budgets and unhealthy pod eviction policies. A practical PDB field reference should also be understood in the context of the workload’s replica count and operational requirements.
Voluntary and Involuntary Disruptions Are Different
One of the most important limitations of a PDB is that it governs voluntary disruptions rather than every event that can make a pod unavailable.
A voluntary disruption is initiated through an administrative or automated action, such as draining a node for maintenance. Tools that use the Kubernetes Eviction API can check the applicable PDB before removing a pod.
An involuntary disruption is caused by an event that the application owner or cluster administrator does not deliberately initiate. Examples include:
- A worker node experiencing a hardware failure
- A node becoming unreachable
- A process being terminated because of resource pressure
- A pod being lost due to an unexpected infrastructure failure
A PDB cannot prevent these events. However, involuntary disruptions still count against the disruption budget. If a workload has already lost one replica because of a node failure, the budget may no longer permit another voluntary eviction.
The distinction is explicit in the Kubernetes pod disruption model. A PDB can restrict an eviction request, but it cannot guarantee that the underlying infrastructure will remain available.
How Kubernetes Handles Pod Eviction During Node Maintenance
Consider a cluster with three worker nodes running a replicated application. An administrator needs to update the operating system on one node and begins by draining it:
kubectl drain worker-node-01 –ignore-daemonsets
The drain process attempts to evict eligible pods from the node. For workloads protected by a PDB, Kubernetes evaluates whether the requested eviction would violate the configured availability requirement.
If the disruption budget allows the eviction, the API server accepts the request and the pod begins graceful termination. Its replacement can then be scheduled on another suitable node, assuming the cluster has sufficient resources and the scheduling requirements can be satisfied.
If the eviction would violate the PDB, the API server rejects the request temporarily. The drain process retries failed eviction requests until the pods can be evicted or the configured timeout is reached.
This is why a node drain can remain blocked even when the administrator has confirmed that the application has multiple replicas.
The important point is that accepting an eviction request and successfully restoring application capacity are separate events. The PDB controls the first. Scheduling, resource availability, application startup and readiness determine whether the second succeeds.
The Kubernetes Eviction API provides the mechanism through which supported eviction requests are processed. The safe node drain procedure also describes how Kubernetes respects disruption budgets and graceful termination during maintenance.
Why PDBs Fail to Protect Applications During Maintenance
A PDB can be configured correctly and still fail to deliver the expected application availability. This usually happens because the budget is treated as a complete maintenance safeguard instead of one control within a larger operational system.
A PDB Doesn’t Guarantee Replacement Pod Scheduling
A PDB can permit an eviction when enough healthy replicas remain. It does not reserve CPU or memory for the replacement pod.
Suppose a service has four replicas and its PDB requires three available pods. One replica is evicted from a worker node, and Kubernetes attempts to schedule its replacement elsewhere.
If the remaining nodes do not have enough allocatable CPU or memory, the replacement pod stays in the Pending state. The original pod is gone, but the replacement cannot become available.
This situation is particularly common in clusters running close to their resource limits. A workload may have enough capacity during normal operation but lack the spare capacity needed to relocate pods during maintenance.
Resource requests are important here. Kubernetes schedules pods based on resource requests rather than simply checking whether a node appears to have unused capacity at that moment. If the replacement pod’s requests cannot be satisfied, the scheduler will not place it on the node.
A maintenance plan should therefore account for the resources needed to reschedule workloads before draining a node. High Kubernetes cluster utilization can leave too little headroom for replacement pods, even when the disruption budget itself permits an eviction.
Readiness Probes Can Report Healthy Pods That Cannot Serve Real Traffic
PDB calculations depend on Kubernetes pod readiness. A pod marked Ready is generally treated as healthy for disruption-budget calculations.
However, Kubernetes readiness does not automatically mean that the application can successfully handle every business request.
Consider a payment service with four replicas. Each pod exposes a basic health endpoint that returns HTTP 200 when the application process is running. During maintenance, the service loses connectivity to its database or exhausts its database connection pool.
The health endpoint may continue returning a successful response even though payment requests are failing.
Kubernetes can still consider those pods Ready, allowing the PDB to calculate that enough healthy replicas remain. From the application’s perspective, however, the service may already be degraded.
A readiness probe should reflect whether a pod can accept the traffic it is expected to serve, rather than merely confirming that its process is running. Poorly designed Kubernetes readiness probes can create a mismatch between the platform’s availability calculation and the application’s actual serving capacity.
The same problem applies to application health checks that do not account for critical dependencies. A service can appear operational at the container level while being unavailable at the business transaction level.
For production workloads, readiness checks should be designed around meaningful serving capability. They should also avoid making a temporary dependency issue trigger unnecessary cascading failures across all replicas.
Scheduling Constraints Can Prevent Replacement Pods From Starting
A replacement pod does not have to run on the same node as the pod being evicted. Kubernetes must find another node that satisfies the workload’s scheduling requirements.
Those requirements can make relocation difficult.
For example, a workload may use pod anti-affinity to prevent replicas from running on the same node. This is useful when the objective is to reduce the impact of a single-node failure. However, if the cluster has only four suitable nodes for four replicas, draining one of those nodes may leave no eligible placement for the replacement.
Topology spread constraints can create similar challenges. A workload may require replicas to be distributed across availability zones, racks or other topology domains. If the remaining domains lack capacity, the scheduler may be unable to place the replacement pod while maintaining the required distribution.
These rules are not inherently problematic. They help protect workloads against correlated failures. The issue arises when scheduling policies are designed without considering maintenance scenarios.
For example, a cluster may have three replicas distributed across three availability zones. If one zone is temporarily unavailable or has insufficient capacity, the scheduler may not be able to maintain the intended distribution.
Administrators should review Kubernetes topology spread constraints alongside PDB settings. The disruption budget and placement rules need to support the same availability objective.
Overly Restrictive Budgets Can Block Node Drains
A PDB can also prevent maintenance when its availability requirement is stricter than the application actually needs.
Consider a service running three replicas with this configuration:
spec:
minAvailable: 3
This requires all three replicas to remain available after an eviction. As a result, Kubernetes cannot voluntarily evict any healthy replica while the workload has only three available pods.
The configuration effectively prevents normal node maintenance for that workload unless additional replicas become available or the budget is changed.
This can happen when teams copy a PDB configuration from another environment without considering replica counts, application behavior or maintenance requirements.
A more appropriate configuration might allow one replica to be unavailable:
spec:
maxUnavailable: 1
However, the correct value depends on the application’s actual availability requirements. A stateless web service may tolerate one unavailable replica, while a quorum-based system may require a specific number of members to remain operational.
The budget should reflect the application’s failure tolerance rather than an assumption that keeping every pod running is always the safest option.
Unhealthy Pods Can Prevent Maintenance From Completing
A less obvious problem occurs when pods are already unhealthy before maintenance begins.
For example, a pod may remain in the Running phase but fail to become Ready because of an application bug, an unavailable dependency or a misconfigured readiness probe.
Under the default IfHealthyBudget behavior, a running but unhealthy pod can prevent an eviction when the application is already below its desired healthy count. This can leave node drains blocked even though the pod being removed is not serving traffic.
Kubernetes supports the unhealthyPodEvictionPolicy field to control this behavior. Setting it to AlwaysAllow permits running unhealthy pods to be evicted regardless of whether the PDB’s normal availability criteria are met. Healthy pods remain subject to the disruption budget.
For example:
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: payment-service-pdb
namespace: production
spec:
maxUnavailable: 1
unhealthyPodEvictionPolicy: AlwaysAllow
selector:
matchLabels:
app: payment-service
This setting can help prevent a misbehaving pod from indefinitely blocking node maintenance. However, it should not be applied without understanding the consequences. An unhealthy pod may still have a chance to recover, and evicting it can remove that opportunity.
A workload containing unevictable Kubernetes pods can turn routine maintenance into a prolonged operational task. Teams should decide how unhealthy workloads should behave during maintenance instead of relying entirely on default eviction behavior.
A Successful Deployment Doesn’t Mean the Application Is Healthy
Another source of confusion is the difference between Kubernetes deployment status and application health.
A Deployment may report that its desired replicas are available, but that does not prove that the application can handle production traffic correctly. The same is true during maintenance. A replacement pod can pass its readiness checks and still experience elevated latency, dependency failures or request-processing errors.
For example, a replacement replica may start successfully but take time to warm its cache, establish database connections or synchronize application state. If traffic is routed to it too early, users may experience errors even though Kubernetes reports the pod as Ready.
A green Kubernetes deployment is not sufficient evidence that application capacity has recovered. Maintenance verification needs application-level signals such as successful requests, error rates, latency and dependency health.
PDBs and Deployment Rolling Update Settings Aren’t Interchangeable
A common configuration mistake is assuming that a PodDisruptionBudget controls every type of pod replacement.
A PDB and a Deployment’s rolling update strategy serve different purposes.
A Deployment can define:
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
Here, maxSurge controls how many additional pods can be created above the desired replica count during an update. maxUnavailable controls how many replicas can be unavailable during that rolling update.
A PDB, on the other hand, governs voluntary evictions through the Eviction API.
Kubernetes workload controllers are not constrained by PDBs in the same way when performing their own rolling updates. The Deployment or StatefulSet update strategy governs those operations.
This distinction matters during maintenance because teams may configure a restrictive PDB and assume that it will also control application rollout behavior. It will not.
For example, a Deployment can have a rolling update strategy that allows one unavailable replica while its PDB separately allows one voluntary eviction. These settings should be evaluated together, but they do not represent a single shared disruption limit.
How to Design PDBs That Support Reliable Cluster Maintenance
A reliable PDB strategy begins with the application’s actual availability requirements. Replica count alone is not enough to determine the right disruption budget.
Set the Budget According to Application Behavior
For a stateless service with five replicas, allowing one replica to be unavailable may be reasonable. For a quorum-based database or distributed coordination service, the budget must reflect the minimum number of members needed to preserve quorum.
Teams should consider:
- The minimum number of replicas required to serve production traffic.
- Whether the application supports concurrent replica failures.
- Whether replicas share state or depend on a common backend.
- How long a replacement pod takes to become ready.
- Whether traffic can be redistributed without overloading the remaining replicas.
A PDB should protect the application’s real operating requirement, not simply keep a particular percentage of pods running.
Maintain Spare Cluster Capacity
A disruption budget cannot create capacity. Before starting maintenance, administrators should verify that the remaining nodes can accommodate replacement workloads.
This includes checking resource requests, node allocatable capacity, taints, tolerations, affinity rules and any placement restrictions.
Capacity planning should also account for temporary resource demand. A replacement pod may require additional CPU or memory while initializing, loading data or establishing connections.
For clusters with tight resource utilization, node overprovisioning or temporary capacity expansion can reduce the likelihood of replacement pods remaining Pending during maintenance.
Distribute Replicas Across Failure Domains
Running multiple replicas on a single worker node does not provide meaningful protection against node-level maintenance or failure.
Replicas should be distributed across suitable nodes and, where possible, across availability zones or other failure domains. Topology spread constraints and pod anti-affinity can help enforce this distribution.
However, placement policies must leave enough flexibility for rescheduling. A configuration that spreads replicas perfectly under normal conditions but prevents replacement placement during maintenance can create a different availability problem.
Configure Graceful Termination
A pod should have enough time to stop accepting new work, complete in-flight requests and release resources before termination.
The terminationGracePeriodSeconds setting defines the time Kubernetes allows for graceful shutdown. Applications can also use a preStop lifecycle hook to coordinate shutdown behavior.
For example:
spec:
terminationGracePeriodSeconds: 60
containers:
– name: payment-service
image: example/payment-service:latest
lifecycle:
preStop:
exec:
command:
– /bin/sh
– -c
– sleep 10
This example illustrates a delay before the container receives its termination signal. It is not a complete graceful-shutdown implementation. A production application should use shutdown logic that stops accepting new requests, handles in-flight work and closes connections appropriately.
A long termination grace period alone does not guarantee that requests will complete successfully. The application, service routing and load-balancing behavior must work together.
Validate the PDB Before Maintenance
A PDB should be reviewed before every planned maintenance window, especially if the workload’s replica count or scheduling configuration has changed.
Administrators can inspect the current disruption budget with:
kubectl get pdb -A
For a specific application:
kubectl describe pdb payment-service-pdb -n production
Pay particular attention to:
ALLOWED DISRUPTIONS
CURRENT HEALTHY
DESIRED HEALTHY
The selected pod count
The PDB’s label selector
The unhealthy pod eviction policy
If ALLOWED DISRUPTIONS is zero, a voluntary eviction may be blocked. The next step should be to identify why the budget is unavailable rather than immediately deleting or modifying the PDB.
Troubleshooting a Kubernetes Node Drain That Gets Stuck
When kubectl drain does not complete, the PDB is only one part of the investigation. Administrators should determine whether the eviction is blocked by the disruption budget, whether replacement pods can be scheduled or whether the workload itself is unhealthy.
Start by listing PDBs across namespaces:
kubectl get pdb -A
Then inspect the affected workload’s budget:
kubectl describe pdb payment-service-pdb -n production
Check the pods on the node being drained:
kubectl get pods -o wide -n production
If replacement pods are not starting, inspect their scheduling and container events:
kubectl describe pod <pod-name> -n production
Look for messages indicating insufficient CPU or memory, node affinity conflicts, untolerated taints or topology spread constraints that cannot be satisfied.
Cluster events can reveal additional problems:
kubectl get events -A –sort-by=.lastTimestamp
The investigation should also include application-level health. A pod marked Ready may still be experiencing failed requests or dependency issues. Review service error rates, latency, database connectivity and other application metrics before assuming that the workload is safe to disrupt.
Production teams should make these checks part of a repeatable maintenance procedure. Reliable Kubernetes production operations require workload health and cluster capacity to be validated before infrastructure changes begin.
A Safer Maintenance Process for Production Kubernetes Clusters
Node maintenance should be treated as a controlled availability exercise rather than a sequence of infrastructure commands.
A practical process includes the following steps.
1. Review Workload Health Before Maintenance: Check replica availability, application error rates, readiness status and dependency health. Do not begin a drain when the application is already degraded unless the maintenance is required to resolve a critical issue.
2. Validate Disruption Budgets: Confirm that PDB selectors match the intended workloads and that the allowed disruption count is appropriate for the current replica count.
3. Confirm Rescheduling Capacity: Check available CPU and memory on the remaining nodes. Review taints, tolerations, node affinity, anti-affinity and topology spread requirements.
4. Drain Nodes Incrementally: Avoid draining multiple worker nodes simultaneously unless the cluster has been explicitly designed and tested to support that level of disruption. A one-node-at-a-time approach gives replacement workloads time to become operational before the next maintenance action.
5. Verify Application Recovery: After each drain, confirm that replacement pods are Running and Ready. Also verify that the application is processing real traffic successfully and that error rates and latency remain within acceptable limits.
6. Continue Only When the Cluster has Recovered: Do not treat successful pod eviction as proof that maintenance is safe to continue. Wait until the application has regained its intended capacity and the cluster is stable.
This approach reduces the risk of turning a routine node update into an application outage.
Conclusion
Kubernetes PDBs are important for protecting replicated workloads during planned maintenance. They prevent supported eviction workflows from voluntarily removing too many healthy pods at once. However, they do not guarantee replacement pod scheduling, application-level health, sufficient cluster capacity or uninterrupted traffic.
A PDB can work exactly as configured while an application still experiences downtime. Replacement pods may remain Pending, readiness probes may report misleading results, topology constraints may prevent rescheduling or unhealthy workloads may block node drains.
Reliable maintenance requires more than a carefully chosen minAvailable or maxUnavailable value. Teams need to coordinate disruption budgets with resource planning, scheduling policies, graceful termination, application health checks and controlled node-drain procedures.
The most effective approach is to treat a PDB as one availability safeguard within a broader operational strategy. When its limits are understood and the surrounding systems are validated, Kubernetes maintenance becomes more predictable and production workloads are better prepared to withstand planned disruptions.
Frequently Asked Questions
What does a Kubernetes PodDisruptionBudget actually protect?
A PDB limits voluntary pod disruptions, helping maintain a specified number of healthy replicas during planned maintenance.
Why can Kubernetes applications experience downtime despite having a PDB?
Insufficient cluster capacity, scheduling restrictions and misleading readiness checks can compromise application availability even when PDBs work as configured.
How can teams make Kubernetes node maintenance safer?
Validate disruption budgets, maintain spare capacity, drain nodes incrementally and verify application-level recovery before proceeding.







