Every Kubernetes minor release removes something. Not deprecates — removes. If your cluster is still serving policy/v1beta1 PodDisruptionBudgets or autoscaling/v2beta2 HorizontalPodAutoscalers, the upgrade does not degrade gracefully: those objects simply stop existing, and the workloads behind them lose their safety rails at the worst possible moment.
The failure pattern is depressingly consistent. A platform team schedules a maintenance window, runs kubeadm upgrade, and discovers 40 minutes later that three Helm releases never came back because their charts referenced an apiVersion the new API server no longer serves. The cluster is “upgraded” and partially broken, rollback of the control plane is now a bigger risk than fixing forward, and the incident review concludes with the same sentence every time: we should have scanned first.
This guide compares the three tools that actually solve that problem — kubent, Pluto, and kubepug — and then walks through the upgrade sequence that keeps workloads online while you move between minor versions.
TL;DR: Which Deprecation Tool Should You Use?
Run Pluto in CI, kubent before the window, kubepug for anything you have not applied yet. They overlap, but they are not interchangeable:
- Pluto gives you a deterministic exit code, which makes it the only one of the three that belongs in a pipeline gate.
- kubent is the fastest way to get a full inventory of a live cluster plus its Helm releases in one command.
- kubepug is the best offline checker for raw manifests and chart output, especially when you want to test against a future Kubernetes version before you commit to it.
If you only adopt one: Pluto, because it fails builds instead of producing reports nobody reads.
Quick Comparison: kubent vs Pluto vs kubepug
All three tools are actively maintained. Star counts and last-push dates below were pulled from GitHub at publication time.
| Dimension | kubent (kube-no-trouble) | Pluto | kubepug |
|---|---|---|---|
| Repository | doitintl/kube-no-trouble | FairwindsOps/pluto | rikatz/kubepug |
| GitHub stars | 3,701 | 2,611 | 1,846 |
| Last push | 2026-09-17 | 2026-11-27 | 2026-11-30 |
| Implementation | Go | Go | Go |
| Inputs | Live cluster, Helm 3 releases | Live cluster, Helm, directories | Files, Helm output, live cluster |
| Target version override | Yes (--target-version) | Yes (--target-versions) | Yes (--k8s-version) |
| CI-friendly exit code | Limited | Yes (non-zero on findings) | Yes (--error-on-deprecated, --error-on-deleted) |
| Output formats | text, json, yaml | wide, json, yaml, csv, markdown | plain, json, yaml |
| Best at | Fast cluster-wide inventory | Gating pull requests | Offline manifest auditing |
The important difference is not the feature list — it is when each tool runs. kubent and Pluto’s cluster modes tell you what is already broken in a running system. kubepug’s file mode tells you what will break before anything is deployed.
Scenario Decision Matrix
| Your situation | Recommended tool | Why |
|---|---|---|
Pull requests touch deploy/ or Helm charts | Pluto (detect-files, detect-helm) | Exit codes fail the build at review time |
| Quarterly upgrade window, unknown cluster state | kubent | One binary, scans live objects and Helm releases together |
| Evaluating a jump of two or three minor versions | kubepug with --k8s-version | Tests manifests against a future API surface |
| Air-gapped cluster with no CI integration | kubent with -o json | Single static binary, no cluster-wide agents |
| Managed control plane (EKS, GKE, AKS) | Pluto cluster mode | You cannot inspect the API server directly, but you can inspect objects |
| GitOps repository with 500+ manifests | kubepug --input-file on rendered output | Fast, deterministic, no cluster credentials needed |
kubent: The Pre-Flight Scanner for Live Clusters
kubent (kube-no-trouble) connects to the current context in your kubeconfig, walks every API resource it can list, and reports objects that use removed or soon-to-be-removed apiVersions. With --helm3 it also inflates Helm release manifests, which is where most surprises hide: a chart can render a deprecated apiVersion even when the chart’s Chart.yaml looks modern.
Install it as a standalone binary:
| |
A typical pre-window run:
| |
Read the output in two passes. First pass: anything marked as removed in the target version — those objects must be migrated or deleted before the window. Second pass: anything deprecated but still served — those are your follow-up backlog, not blockers.
Two operational notes. kubent needs list permissions on cluster-scoped resources, so run it with a read-only service account rather than your admin kubeconfig in shared environments. And because it scans Helm releases by reading release secrets, --helm3 requires access to the namespace where those secrets live; in multi-tenant clusters, run it once per tenant namespace rather than assuming a single cluster-wide pass caught everything.
Pluto: The CI Gate That Fails Builds Before They Ship
Pluto’s design assumption is that humans forget and pipelines do not. pluto detect-files takes a directory of YAML, compares every apiVersion against its version database, and returns a non-zero exit code when it finds something deprecated or removed for your target version. That single behavior is worth more than any dashboard.
Install via the release binary or Homebrew:
| |
Gate a GitOps repository:
| |
And for a live cluster:
| |
The -o wide flag matters. The default output collapses multiple objects into a count; wide output prints namespace, resource name, and the replacement apiVersion, which is exactly what an on-call engineer needs at 2 a.m.
Pluto is the tool I recommend wiring into pre-commit and CI simultaneously. Pre-commit catches it before review, CI catches it when someone bypasses hooks. The version database ships with each release, so pin the Pluto version in CI and bump it deliberately — an unpinned scanner that suddenly knows about a new removal will fail builds for reasons unrelated to the change under review.
Kubepug: Offline Manifests and Helm Charts
kubepug (“Kubernetes PreUpGrade Checker”) is the most flexible of the three for offline work. It accepts files, directories, stdin, and cluster queries, and it distinguishes between deprecated and deleted APIs, which lets you set different failure thresholds for each.
| |
The --error-on-deleted and --error-on-deprecated split is genuinely useful during a multi-quarter migration. Early in the cycle, fail only on deleted APIs; later, tighten to deprecated as well. Most teams get this backwards and end up disabling the gate entirely because it fires on findings they already know about.
One caveat: kubepug reads manifests as written, so it does not evaluate Helm conditionals or Kustomize overlays unless you render them first. Feed it helm template or kustomize build output, not the source tree.
The Zero-Downtime Upgrade Runbook
Tooling finds the problems; sequencing keeps the site up. This is the order that survives contact with production:
- Back up etcd and verify the backup restores. A snapshot you have never restored is a file, not a backup. On managed clusters, confirm the control-plane backup policy instead.
- Freeze changes. Stop merges to the GitOps repository and scale down non-critical CronJobs for the window.
- Upgrade the control plane first, one minor version at a time. Kubernetes does not support skipping minor versions, and the API server must never be more than one minor ahead of kubelets for long.
- Upgrade kubelets. Since 1.28, kubelet may be up to three minor versions older than the API server, but the reverse is not true. Upgrade node pools in batches, not all at once.
- Drain with disruption budgets in mind. A PodDisruptionBudget with
minAvailableequal to the replica count will block eviction indefinitely. Check budgets before the window, not during it. - Verify workload health with real signals — error rate, latency, and queue depth — rather than pod phase. A pod can be
Runningand still failing every request. - Keep the previous node image available so a failed batch can be reverted without rebuilding.
For the GitOps side, the practical rule is: upgrade the controller (Argo CD or Flux) before the cluster, not after. An old controller reconciling against a newer API server is a reliable source of silent drift.
Five Pitfalls That Sink Upgrades
Conversion webhooks with no healthy backend. CustomResourceDefinitions that use spec.conversion.webhook fail all reads if the webhook service is unavailable during the upgrade. Check that the webhook deployment tolerates node drains, and consider conversion.strategy: None for CRDs with a single served version.
Aggregated APIs left behind. metrics-server, the Gateway API CRDs, and any aggregated API server must be upgraded alongside the control plane. A stale aggregated API produces ServiceUnavailable on kubectl top and, worse, on horizontal autoscaling decisions.
PDBs that block drains forever. A single-replica Deployment with minAvailable: 1 is undrainable. Either raise replicas before the window or temporarily relax the budget with a documented change record.
Helm release drift. A release installed three years ago may render an apiVersion that no longer exists even though the chart repository has moved on. helm template the current values and scan the output — do not assume the chart version in helm list reflects what is actually stored.
Stateful workloads with in-tree storage classes. Volumes tied to in-tree providers need CSI migration completed before the version that removes the in-tree plugin. Verify with kubectl get csistoragecapacities and the migration flags on the API server.
For cluster lifecycle management around the upgrade itself, see our Rancher vs Kubespray vs Kind comparison. If you run automated node reboots, the kured vs Reloader vs Keel guide explains how to keep those from fighting your maintenance window. And when pods misbehave after the upgrade, the Kubernetes debugging tools comparison is the fastest path from symptom to root cause.
FAQ
What happens if I skip a Kubernetes minor version?
The upgrade fails or leaves the cluster in an unsupported state. Kubernetes requires sequential minor upgrades for the control plane, and kubelets may lag the API server by at most three minor versions. Going from 1.30 to 1.32 means two separate control-plane upgrades with a verification step between them.
Do I need all three tools?
No. Pluto alone covers CI gating and live-cluster inventory well enough for most teams. Add kubent if you want a single fast binary for pre-window audits on air-gapped clusters, and kubepug if you evaluate future versions against large manifest repositories.
How do I detect deprecated APIs in Helm charts before installing them?
Render the chart with your real values and scan the output: helm template release ./chart > rendered.yaml followed by pluto detect-files -d . or kubepug --input-file rendered.yaml --k8s-version 1.32. Scanning Chart.yaml or the templates directory directly misses conditionals and value-driven branches.
Can I upgrade the control plane while workloads keep running?
Yes. The API server runs as a multi-instance control plane behind a load balancer, so kube-apiserver, controller-manager, and scheduler upgrades are designed to be rolling. The workload risk comes from removed APIs and from node drains, not from the control-plane restart itself.
What is the safest rollback plan?
Restore the etcd snapshot taken before the upgrade, then rebuild control-plane nodes from the previous image. On managed clusters, rollback of the control plane is usually not available, which is why API scanning and a staging upgrade matter more there. Never rely on downgrading kubelets — reimage the node instead.
How long should an upgrade window be for a 50-node cluster?
Plan three to four hours. Control-plane upgrades take 15 to 30 minutes; node batches of 5 to 10 nodes take 10 to 15 minutes each when drains are clean. The variable is not the upgrade itself but the time spent waiting for eviction budgets and for stateful workloads to reschedule.
💰 想测试你的市场判断力?我用 Polymarket 做预测市场交易——这是全球最大的预测市场平台,从大选结果到技术监管时间线,什么都可以押注。和赌博不同,这是真正的信息市场:你懂的信息越多,胜率越高。我靠预测技术相关事件的走向已经赚了不少。用我的邀请链接注册:Polymarket.com