Version Skew Policy
This document describes the maximum version skew supported between various Kubernetes components. Specific cluster deployment tools may place additional restrictions on version skew.
Supported versions
Kubernetes versions are expressed as x.y.z, where x is the major version, y is the minor version, and z is the patch version, following .
The Kubernetes project maintains release branches for the most recent three minor releases (1.27, 1.26, 1.25). Kubernetes 1.19 and newer receive approximately 1 year of patch support. Kubernetes 1.18 and older received approximately 9 months of patch support.
Applicable fixes, including security fixes, may be backported to those three release branches, depending on severity and feasibility.
Patch releases are cut from those branches at a
The Release Managers group owns this decision. For more information, see the Kubernetes patch releases page. In highly-available (HA) clusters, the newest and oldest Example: Example: Example: Example: Example: Example: Example: The supported version skew between components has implications on the order in which components must be upgraded.
This section describes the order in which components must be upgraded to transition an existing cluster from version 1.22 to version 1.23. Pre-requisites: Upgrade Pre-requisites: Upgrade Pre-requisites: Optionally upgrade Running a cluster with Example: If Supported version skew
kube-apiserver
kube-apiserver instances must be within one minor version.
kube-apiserver is at 1.23kube-apiserver instances are supported at 1.23 and 1.22kubelet
kubelet must not be newer than kube-apiserver, and may be up to two minor versions older.
kube-apiserver is at 1.23kubelet is supported at 1.23, 1.22, and 1.21kube-apiserver instances in an HA cluster, this narrows the allowed kubelet versions.
kube-apiserver instances are at 1.23 and 1.22kubelet is supported at 1.22, and 1.21 (1.23 is not supported because that would be newer than the kube-apiserver instance at version 1.22)kube-controller-manager, kube-scheduler, and cloud-controller-manager
kube-controller-manager, kube-scheduler, and cloud-controller-manager must not be newer than the kube-apiserver instances they communicate with. They are expected to match the kube-apiserver minor version, but may be up to one minor version older (to allow live upgrades).
kube-apiserver is at 1.23kube-controller-manager, kube-scheduler, and cloud-controller-manager are supported at 1.23 and 1.22kube-apiserver instances in an HA cluster, and these components can communicate with any kube-apiserver instance in the cluster (for example, via a load balancer), this narrows the allowed versions of these components.
kube-apiserver instances are at 1.23 and 1.22kube-controller-manager, kube-scheduler, and cloud-controller-manager communicate with a load balancer that can route to any kube-apiserver instancekube-controller-manager, kube-scheduler, and cloud-controller-manager are supported at 1.22 (1.23 is not supported because that would be newer than the kube-apiserver instance at version 1.22)kubectl
kubectl is supported within one minor version (older or newer) of kube-apiserver.
kube-apiserver is at 1.23kubectl is supported at 1.24, 1.23, and 1.22kube-apiserver instances in an HA cluster, this narrows the supported kubectl versions.
kube-apiserver instances are at 1.23 and 1.22kubectl is supported at 1.23 and 1.22 (other versions would be more than one minor version skewed from one of the kube-apiserver components)Supported component upgrade order
kube-apiserver
kube-apiserver instance is 1.22kube-apiserver instances are at 1.22 or 1.23 (this ensures maximum skew of 1 minor version between the oldest and newest kube-apiserver instance)kube-controller-manager, kube-scheduler, and cloud-controller-manager instances that communicate with this server are at version 1.22 (this ensures they are not newer than the existing API server version, and are within 1 minor version of the new API server version)kubelet instances on all nodes are at version 1.22 or 1.21 (this ensures they are not newer than the existing API server version, and are within 2 minor versions of the new API server version)kube-apiserver instance will send them:
ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects are updated to include any new versions of REST resources added in 1.23 (or use the matchPolicy: Equivalent option available in v1.15+)kube-apiserver to 1.23kube-apiserver to not skip minor versions when upgrading, even in single-instance clusters.
kube-controller-manager, kube-scheduler, and cloud-controller-manager
kube-apiserver instances these components communicate with are at 1.23 (in HA clusters in which these control plane components can communicate with any kube-apiserver instance in the cluster, all kube-apiserver instances must be upgraded before upgrading these components)kube-controller-manager, kube-scheduler, and cloud-controller-manager to 1.23kubelet
kube-apiserver instances the kubelet communicates with are at 1.23kubelet instances to 1.23 (or they can be left at 1.22 or 1.21)kubelet upgrade, drain pods from that node.
In-place minor version kubelet upgrades are not supported.
kubelet instances that are persistently two minor versions behind kube-apiserver is not recommended:
kube-apiserver before the control plane can be upgradedkubelet versions older than the three maintained minor releaseskube-proxy
kube-proxy must be the same minor version as kubelet on the node.kube-proxy must not be newer than kube-apiserver.kube-proxy must be at most two minor versions older than kube-apiserver.kube-proxy version is 1.21:
kubelet version must be at the same minor version as 1.21.kube-apiserver version must be between 1.21 and 1.23, inclusive.