BlogGoogle Kubernetes Engine

GKE Node Upgrade and PodDisruptionBudget: The 1-Hour Limit

Scott Sternloff

By Scott Sternloff, Senior Enterprise Architect

LinkedIn · Updated · 5 min read

GKE Node Upgrade and PodDisruptionBudget: The 1-Hour Limit
On this page

Short answer

During a GKE node upgrade, the drain respects your PodDisruptionBudget and terminationGracePeriodSeconds for at most one hour per node. After that, GKE deletes the remaining Pods even if the budget allows no disruption. A PDB with zero allowed disruptions therefore slows the upgrade by an hour per node, then gets overridden, so fix the budget before the window opens.

During a GKE node upgrade, the drain respects your PodDisruptionBudget and terminationGracePeriodSeconds for at most one hour per node. After that, GKE deletes the remaining Pods even if the budget allows no disruption. A PDB with zero allowed disruptions therefore slows the upgrade by an hour per node, then gets overridden, so fix the budget before the window opens.

This post goes deeper on one detail from our upgrade checklist for channels and windows. For the settings around it, AceMQ's GKE upgrade strategy work begins with the PDB audit below. Everything here comes from Google's Google Kubernetes Engine documentation and the Kubernetes docs, read 3 December 2026.

What is a Pod Disruption Budget in Kubernetes, and how does it work?

A PodDisruptionBudget limits how many Pods of a workload can be evicted voluntarily at once. You set either minAvailable or maxUnavailable, never both, and a label selector that picks the Pods. Drains for node upgrades are voluntary evictions, so they honour it.

apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: web-pdb
spec:
  maxUnavailable: 1
  selector:
    matchLabels:
      app: web

The trap is the arithmetic. A Deployment with 3 replicas and minAvailable: 3 allows zero evictions, so the node holding one of them can never drain politely. maxUnavailable: 1 keeps a rollout and a node drain moving.

What does GKE do with a Pod Disruption Budget during a node upgrade?

GKE drains each old node of a node pool by evicting its Pods, and an eviction that would break a PDB waits. GKE respects the budget for up to one hour, then forces the eviction. The timeline for one node on the default surge upgrade strategy looks like this.

Time since drain startedWhat GKE doesWhat your Pods see
0 to 60 minutesRespects the PDB and terminationGracePeriodSecondsEvictions refused until the budget allows them
After 60 minutesForcibly evicts the remaining PodsDeleted even if the PDB allows no disruption
ThenDeletes the old node and continuesReplacement Pods start on other nodes

The new node is created first on the default surge strategy, with maxSurge 1 and maxUnavailable 0, so capacity does not drop while the drain waits. The control plane is upgraded separately; this post covers only the node pool rollout.

Why does a PDB make an upgrade take hours?

A PDB that allows zero disruptions makes every node wait the full hour. If one zone holds 10 nodes and each waits out the limit, the pool needs about 10 hours. That is arithmetic from Google's one-hour figure, not a published estimate.

  • A Deployment with one replica and minAvailable: 1 can never be evicted politely.
  • A budget of maxUnavailable: 0 forbids every eviction.
  • Google's guide adds that zero-disruption PDBs can make node upgrades fail after repeated attempts, and that PDB violations in the istio-system namespace add about an extra hour per node.
  • A high maxSurge does not help a single workload: a PDB with maxUnavailable=1 still limits how many of its Pods leave at once.

How do I find the PDBs that will stall the upgrade?

Audit before the maintenance window, not during it.

  1. List the budgets with zero allowed disruptions, using the command below, taken from Google's upgrade guide.
  2. For each match, compare the replica count with the budget. Replicas must exceed the minimum you require.
  3. Scale up the Deployment or its HorizontalPodAutoscaler so a node can drain while the PDB still holds. This is Google's recommended fix.
  4. Check each long terminationGracePeriodSeconds. Anything over 60 minutes is cut off at the limit.
  5. Confirm surge capacity and quota in each zone, as covered in the upgrade checklist for channels and windows.
kubectl get poddisruptionbudget --all-namespaces -o jsonpath='{range .items[?(@.status.disruptionsAllowed==0)]}{.metadata.name}/{.metadata.namespace}{"\n"}{end}'

How does a blue-green upgrade treat PDBs differently?

Blue-green gives you control over timing. It drains the old nodes in batches you set, then keeps them through a soak period before deleting them. Each phase handles PDBs differently.

PhasePDB behaviourSetting
Drain blue poolEviction requests go out in batches; Pods that violate a PDB wait until the later delete phaseBatch node count or percent (--standard-rollout-policy)
SoakWorkloads run on the new nodes while you verify themNode pool soak, 3600 seconds by default
Delete blue poolDeletion, not eviction: PDBs are not respected and Pods are forcibly deletedTermination grace capped at 60 minutes

Google recommends blue-green when you need more graceful termination time than the one-hour surge limit allows. The trade-off is temporary extra capacity.

What are the best practices to minimize disruption during a GKE node pool upgrade?

Keep the PDB loose enough to drain and the cluster large enough to absorb the move. These practices follow from the limits above and from Google's documentation.

  • Run more replicas than your minimum, so a Google Cloud node pool upgrade can evict one Pod while the budget holds.
  • Choose the upgrade strategy per node pool: surge for Pods that stop in under an hour, blue-green for slower shutdowns. Autopilot clusters use surge upgrades only, and you cannot change that.
  • Make sure quota or reserved capacity can supply the surge nodes. With maxUnavailable at 0 and no spare capacity, GKE does not start upgrading a node until resources are available.
  • Test the upgrade on a pre-production GKE cluster first, with the same PDBs, and time the drain.
  • Record every budget that allows zero disruptions with an owner, so the fix is a code or replica change by that team.

What if the upgrade is already stuck?

  • Check progress with gcloud container operations list and gcloud container operations describe OPERATION_ID.
  • If the upgrade was interrupted, resume it by rerunning the upgrade to the original target version. Google warns that another change to the pool, such as a label update, can trigger a reconcile that reverts upgraded nodes to the old version.
  • For a cancelled, failed or incomplete upgrade you can use gcloud container node-pools rollback. You cannot roll back a pool that upgraded successfully.

The audit above is part of what a GKE review covers; our release channel and upgrade strategy review page lists the scope.

Sources

Frequently Asked Questions

Can a PodDisruptionBudget block a GKE node upgrade forever?

No. GKE respects PDBs and termination grace periods for a maximum of one hour per drain, then deletes the remaining Pods so the node can be replaced, even when the PDB allows no disruption.

How do I find PDBs that allow zero disruptions?

Run the kubectl command from Google's upgrade guide, which filters `status.disruptionsAllowed` equal to 0 across all namespaces. Each match is a budget that will stall a drain until the hour passes.

Does blue-green upgrade ignore my PDB?

Not at first. Blue-green drains blue nodes in batches and respects PDBs, then a later delete phase removes remaining Pods without respecting them, with the termination grace period capped at 60 minutes.

Scott Sternloff

Author

Scott SternloffSenior Enterprise Architect

Senior Enterprise Architect at AceMQ. Writes the technical coverage here: RabbitMQ, Kafka and Redis architecture, clustering and migrations.

Talk to an engineer

Need a hand with Google Kubernetes Engine?

Senior engineers who run it in production. Get a quote or a free consultation, no sales pitch.

Free Consultation

Get Expert Eyes on Your Google Kubernetes Engine Environment

Whether you're troubleshooting a production incident, planning a migration, or want a second opinion on your architecture — our team is ready. No pitch, just answers.

Email Us