BlogGoogle Kubernetes Engine

GKE Maintenance Exclusion vs Deprecation Insights

Scott Sternloff

By Scott Sternloff, Senior Enterprise Architect

LinkedIn · Updated · 4 min read

GKE Maintenance Exclusion vs Deprecation Insights
On this page

Short answer

GKE pauses automatic minor upgrades on its own when it detects a cluster using an API that the next minor version removes, and resumes after 30 days without detected use. That pause is not a guarantee, because detection is not exhaustive. A maintenance exclusion is the control you set yourself. Read the deprecation insights, fix the callers, and use an exclusion only for the time you need.

GKE pauses automatic minor upgrades on its own when it detects a cluster using an API that the next minor version removes, and resumes after 30 days without detected use. That pause is not a guarantee, because detection is not exhaustive. A maintenance exclusion is the control you set yourself. Read the deprecation insights, fix the callers, and use an exclusion only for the time you need.

A maintenance window sets when automatic changes may run; an exclusion forbids them for a period. Windows and exclusion scopes are covered in our upgrade checklist. This post is about the part before them: finding out why an upgrade paused, and choosing between waiting for GKE and setting a hold. It is based on Google's documentation, read 3 December 2026, and is the kind of question a GKE upgrade strategy review answers.

What is the difference between the automatic pause and a maintenance exclusion?

The pause is GKE protecting you; the exclusion is you protecting a plan. They differ in who sets them, what they block and whether you can rely on them.

Deprecated-API pauseMaintenance exclusion
Who sets itGKE, automaticallyYou
What it blocksAutomatic upgrades to the next minor version; patches continueDepends on scope; no_minor_upgrades blocks minor upgrades and allows patches
Guaranteed?No: detection is not guaranteed to be completeYes for automatic upgrades; manual upgrades bypass it, and GKE can override for critical security fixes
Ends when30 days pass with no detected useIts end time, or the minor version's end of support

How do I find out why my GKE cluster upgrade is paused?

Ask GKE for the upgrade status before you guess.

  1. Run gcloud container clusters get-upgrade-info CLUSTER_NAME. The auto-upgrade status can be ACTIVE, MINOR_UPGRADE_PAUSED or UPGRADE_PAUSED, and the reasons include maintenance windows, exclusions and disruption budgets.
  2. Read the cluster's insights: gcloud recommender insights list --insight-type=google.container.DiagnosisInsight --location=LOCATION --project=PROJECT_ID. The console shows the same under View recommendations, and the cluster's Notifications column.
  3. Open one insight and read the deprecated API path, the version that stops serving it, and the usage statistics.
  4. Search Cloud Logging for UpgradeInfoEvent to see end-of-support notifications.

How do I find the client that calls the deprecated API?

The insight is the shortcut. It lists the user agent, the number of requests in the last 30 days and the time of the last request, which often points to the controller, Helm release or CI job responsible. Fix that client, redeploy it, and then wait.

GKE does not detect a feature that has not been used in the last 30 days, and it warns it cannot guarantee detecting all usage. A quiet insight list is encouraging evidence, not proof. A batch job that runs quarterly can hide for months.

How do I configure a GKE maintenance exclusion, and when should I?

Set one when a date matters: a release freeze, a migration with a deadline, or a quarterly job you cannot test early. Use the narrowest scope that does the job. The three exclusion scopes are no_upgrades, no_minor_upgrades and no_minor_or_node_upgrades, and the restricted scopes work only for a cluster enrolled in a release channel.

  • no_minor_upgrades blocks minor upgrades and allows patches. Google's own example is a three-month exclusion while applications move off a beta API that will be removed.
  • It can track the end of support with --add-maintenance-exclusion-until-end-of-support, and keep it under six months.
  • At the end of support the exclusion goes inactive, GKE performs the required upgrade, and the exclusion re-arms against the next minor version.
  • An emergency no_upgrades exclusion can delay an end-of-support upgrade by up to 90 days, which Google does not recommend because of the security risk.

List the exclusions that are active with gcloud container clusters describe CLUSTER_NAME, which prints the cluster's maintenance policy, windows and exclusions together.

gcloud container clusters update CLUSTER_NAME \
  --add-maintenance-exclusion-name api-migration \
  --add-maintenance-exclusion-end END_DATE_TIME \
  --add-maintenance-exclusion-scope no_minor_upgrades

How do exclusions interact with maintenance windows and release channels?

An exclusion beats a window: no automatic upgrade of the excluded kind runs inside it, whatever the window says. Google's documentation says a cluster can have at most 20 maintenance exclusions, and at most three that exclude all upgrades, which must leave at least 48 hours of maintenance availability in a 92-day rolling window. The restricted exclusion scopes also need a release channel.

In practice you cannot freeze a cluster all year with no-upgrades exclusions. Use the narrowest scope for the migration that needs it, then let the cluster catch up.

What do exclusions not cover?

They do not block manual upgrades, control plane repairs, or nodes and node pools created later at a newer version. If nodes are held back, upgrade them yourself to stay within the version skew rules (control planes support nodes up to two minor versions older). Plan the exit before you set the hold: our release channel and upgrade strategy review treats the exclusion end date as a deadline for the migration, not an extension.

Sources

Frequently Asked Questions

Does GKE stop auto-upgrades when I use a deprecated API?

Yes, for upgrades to the next minor version. GKE pauses them when it detects usage of an API removed in that version, and patch upgrades continue. It resumes after 30 days without detected usage.

Is the automatic pause a replacement for a maintenance exclusion?

No. Google states that GKE cannot guarantee it detects all deprecated usage, and tells you to use maintenance exclusions to make sure a cluster is not upgraded.

Can I see which client calls a deprecated API?

Yes. A deprecation insight lists the deprecated API path, the version where it stops being served, and usage statistics including the user agent, the request count in the last 30 days and the last request time.

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