Skip to content
New Atlanta
Topics

Kubernetes version skew policy

Work out which node and client versions can safely coexist with every API server during a Kubernetes upgrade.

Published 2 min read
HA API server gap
1 minor version
Maximum kubelet lag
3 minor versions
kubectl skew
1 minor version

Which API servers constrain the upgrade?

Every API server that can receive traffic constrains an HA cluster’s supported combinations. During a staggered rollout, compute the intersection of the allowed ranges for the oldest and newest API servers.

Record the installed versions for each API server and node. Record the versions reported during the rollout separately from the intended final versions.

When can the kubelet move forward?

A kubelet must never be newer than any API server it contacts. Older kubelets have a bounded compatibility window, with a narrower allowance for releases before 1.25.

For example, if one API server is still on the previous minor, keep nodes at or below that older server until the control-plane upgrade finishes. Follow any additional restrictions imposed by your distribution.

Which kubectl should operators use?

A kubectl client must fall inside the supported client range of every API server it can reach. This can narrow the choices when a load balancer fronts mixed versions.

Pin the client used by deployment automation as well as the one used from administrators’ laptops. Record those client versions in the upgrade checklist.

Methodology and sources