Keeping up with Kubernetes releases means checking APIs, add-ons, node pools, and charts. Do you upgrade in place or move workloads to a new cluster, and how do you catch compatibility issues before they cause trouble?
How do you make Kubernetes cluster upgrades less painful?
Answers
In-place upgrades are a reasonable default if the cluster is managed consistently. Go one minor version at a time, upgrade the control plane first, then roll the node pools. Start in a non-production environment and test the applications before moving on to production.
Check the Kubernetes version skew policy and your provider's rules rather than assuming every node must move immediately. Also check add-on and chart compatibility separately. Updating the cluster itself doesn't guarantee those components are ready.
Reply to this answer
For removed API checks, look at what the API server is actually receiving, not just what's in your manifests. The apiserver_requested_deprecated_apis metric and audit annotations can reveal clients calling deprecated APIs, including calls that a manifest scanner won't see.
Manifest validation in CI still helps catch configuration problems before deployment. Provider tools such as EKS Upgrade Insights can add another useful check, but none of these checks alone proves every add-on will work after the upgrade.
Reply to this answer
A side-by-side cluster is more work to set up, but it's worth considering when you want to test the new environment before moving workloads. Infrastructure as code and automated add-on deployment can make the new cluster more repeatable, and the migration itself can be scripted.
It isn't automatically simpler than an in-place upgrade. You still need a plan for moving and testing the workloads.
Reply to this answer
Pick a cadence against your provider's support dates, not just the latest release announcement. Upgrading right away can keep the gap small, but it also leaves less time for providers and add-ons to catch up. A regular quarterly review is one option if it keeps your clusters within support.
Reply to this answer
Add your answer
Answers are reviewed before publication.
3c~ferrulewhisk_592:
Runtime checks are especially useful for controllers or other clients whose API calls aren't obvious from the manifests.