sigs.k8s.io/cluster-api@v1.7.1/docs/book/src/reference/versions.md (about)

     1  # Cluster API Version Support and Kubernetes Version Skew Policy
     2  
     3  ## Supported Versions
     4  
     5  The Cluster API team maintains branches for **v1.x (v1beta1)**. For more details see [Support and guarantees](https://github.com/kubernetes-sigs/cluster-api/blob/main/CONTRIBUTING.md#support-and-guarantees).
     6  
     7  Releases include these components:
     8  
     9  - Core Provider
    10  - Kubeadm Bootstrap Provider
    11  - Kubeadm Control Plane Provider
    12  - clusterctl client
    13  
    14  All Infrastructure Providers are maintained by independent teams. Other Bootstrap and Control Plane Providers are also maintained by independent teams. For more information about their version support, see [below](#providers-maintained-by-independent-teams).
    15  
    16  ## Supported Kubernetes Versions
    17  
    18  A Cluster API minor release supports (when it's initially created):
    19  * 4 Kubernetes minor releases for the management cluster (N - N-3)
    20  * 6 Kubernetes minor releases for the workload cluster (N - N-5)
    21  
    22  When a new Kubernetes minor release is available, we will try to support it in an upcoming Cluster API patch release
    23  (although only in the latest supported Cluster API minor release). See Cluster API [release cycle](https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/release/release-cycle.md)
    24  and [release calendars](https://github.com/kubernetes-sigs/cluster-api/tree/main/docs/release/releases) for more details.
    25  
    26  For example, Cluster API v1.5.0 would support the following Kubernetes versions:
    27  * v1.24.x to v1.27.x for the management cluster
    28  * v1.22.x to v1.27.x for the workload cluster
    29  * When Kubernetes 1.28 is released, it will be supported in v1.5.x (but not in v1.4.x)
    30  
    31  Support in this context means that we:
    32  * maintain corresponding code paths
    33  * have test coverage
    34  * accept bug fixes
    35  
    36  Important! if the changes in Cluster API required to support a new Kubernetes release are too invasive, we won't backport
    37  it to older releases and users have to wait for the next Cluster API minor release.
    38  
    39  Important! This is not a replacement/alternative for upstream Kubernetes support policies!
    40  Support for versions of Kubernetes which itself are out of support is limited to "Cluster API can start a Cluster with this Kubernetes version"
    41  and "Cluster API  can upgrade to the next Kubernetes version"; it does not include any extended support to Kubernetes itself.
    42  
    43  Whenever a new Cluster API release is cut, we will document the Kubernetes version compatibility matrix the release
    44  has been tested with. Summaries of Kubernetes versions supported by each component are additionally maintained in
    45  the [tables](#release-components) below.
    46  
    47  On a final comment, let's praise all the contributors keeping care of such a wide support matrix.
    48  If someone is looking for opportunities to help with the project, this is definitely an area where additional hands
    49  and eyes will be more than welcome and greatly beneficial to the entire community.
    50  
    51  See the [following section](#kubernetes-version-support-as-a-function-of-cluster-topology) to understand how cluster topology affects version support.
    52  
    53  ### Kubernetes Version Support As A Function Of Cluster Topology
    54  
    55  The Core Provider, Kubeadm Bootstrap Provider, and Kubeadm Control Plane Provider run on the Management Cluster, and clusterctl talks to that cluster's API server.
    56  
    57  In some cases, the Management Cluster is separate from the Workload Clusters. The Kubernetes version of the Management and Workload Clusters are allowed to be different.
    58  
    59  Management Clusters and Workload Clusters can be upgraded independently and in any order, however, if you are additionally moving from
    60  v1alpha3 (v0.3.x) to v1beta1 (v1.x) as part of the upgrade rollout, the management cluster will need to be upgraded to at least v1.20.x,
    61  prior to upgrading any workload cluster using Cluster API v1beta1 (v1.x)
    62  
    63  These diagrams show the relationships between components in a Cluster API release (yellow), and other components (white).
    64  
    65  #### Management And Workload Cluster Are the Same (Self-hosted)
    66  
    67  ![Management/Workload Same Cluster](../images/management-workload-same-cluster.png)
    68  
    69  #### Management And Workload Clusters Are Separate
    70  
    71  ![Management/Workload Separate Clusters](../images/management-workload-separate-clusters.png)
    72  
    73  ### Release Components
    74  
    75  #### Core Provider (`cluster-api-controller`)
    76  
    77  |                   | v1.4 (v1beta1) (EOL) | v1.5 (v1beta1)    | v1.6 (v1beta1)    | v1.7 (v1beta1)    |
    78  |-------------------|----------------------|-------------------|-------------------|-------------------|
    79  | Kubernetes v1.21  | ✓ (only workload)    |                   |                   |                   |
    80  | Kubernetes v1.22  | ✓ (only workload)    | ✓ (only workload) |                   |                   |
    81  | Kubernetes v1.23* | ✓                    | ✓ (only workload) | ✓ (only workload) |                   |
    82  | Kubernetes v1.24  | ✓                    | ✓                 | ✓ (only workload) | ✓ (only workload) |
    83  | Kubernetes v1.25  | ✓                    | ✓                 | ✓                 | ✓ (only workload) |
    84  | Kubernetes v1.26  | ✓                    | ✓                 | ✓                 | ✓                 |
    85  | Kubernetes v1.27  | ✓ >= v1.4.2          | ✓                 | ✓                 | ✓                 |
    86  | Kubernetes v1.28  |                      | ✓ >= v1.5.1       | ✓                 | ✓                 |
    87  | Kubernetes v1.29  |                      |                   | ✓ >= v1.6.1       | ✓                 |
    88  | Kubernetes v1.30  |                      |                   |                   | ✓ >= v1.7.1       |
    89  
    90  
    91  \* There is an issue with CRDs in Kubernetes v1.23.{0-2}. ClusterClass with patches is affected by that (for more details please see [this issue](https://github.com/kubernetes-sigs/cluster-api/issues/5990)). Therefore we recommend to use Kubernetes v1.23.3+ with ClusterClass.
    92  	 Previous Kubernetes **minor** versions are not affected.
    93  
    94  The Core Provider also talks to API server of every Workload Cluster. Therefore, the Workload Cluster's Kubernetes version must also be compatible.
    95  
    96  #### Kubeadm Bootstrap Provider (`kubeadm-bootstrap-controller`)
    97  
    98  |                                    | v1.4 (v1beta1) (EOL) | v1.5 (v1beta1)     | v1.6 (v1beta1)     | v1.7 (v1beta1)     |
    99  |------------------------------------|----------------------|--------------------|--------------------|--------------------|
   100  | Kubernetes v1.21 + kubeadm/v1beta2 | ✓  (only workload)   |                    |                    |                    |
   101  | Kubernetes v1.22 + kubeadm/v1beta3 | ✓  (only workload)   | ✓  (only workload) |                    |                    |
   102  | Kubernetes v1.23 + kubeadm/v1beta3 | ✓                    | ✓  (only workload) | ✓  (only workload) |                    |
   103  | Kubernetes v1.24 + kubeadm/v1beta3 | ✓                    | ✓                  | ✓  (only workload) | ✓  (only workload) |
   104  | Kubernetes v1.25 + kubeadm/v1beta3 | ✓                    | ✓                  | ✓                  | ✓  (only workload) |
   105  | Kubernetes v1.26 + kubeadm/v1beta3 | ✓                    | ✓                  | ✓                  | ✓                  |
   106  | Kubernetes v1.27 + kubeadm/v1beta3 | ✓ >= v1.4.2          | ✓                  | ✓                  | ✓                  |
   107  | Kubernetes v1.28 + kubeadm/v1beta3 |                      | ✓ >= v1.5.1        | ✓                  | ✓                  |
   108  | Kubernetes v1.29 + kubeadm/v1beta3 |                      |                    | ✓ >= v1.6.1        | ✓                  |
   109  | Kubernetes v1.30 + kubeadm/v1beta3 |                      |                    |                    | ✓ >= v1.7.1        |
   110  
   111  The Kubeadm Bootstrap Provider generates kubeadm configuration using the API version recommended for the target Kubernetes version.
   112  
   113  #### Kubeadm Control Plane Provider (`kubeadm-control-plane-controller`)
   114  
   115  |                            | v1.4 (v1beta1) (EOL) | v1.5 (v1beta1)    | v1.6 (v1beta1)    | v1.7 (v1beta1)    |
   116  |----------------------------|----------------------|-------------------|-------------------|-------------------|
   117  | Kubernetes v1.21 + etcd/v3 | ✓ (only workload)    |                   |                   |                   |
   118  | Kubernetes v1.22 + etcd/v3 | ✓ (only workload)    | ✓ (only workload) |                   |                   |
   119  | Kubernetes v1.23 + etcd/v3 | ✓                    | ✓ (only workload) | ✓ (only workload) |                   |
   120  | Kubernetes v1.24 + etcd/v3 | ✓                    | ✓                 | ✓ (only workload) | ✓ (only workload) |
   121  | Kubernetes v1.25 + etcd/v3 | ✓                    | ✓                 | ✓                 | ✓ (only workload) |
   122  | Kubernetes v1.26 + etcd/v3 | ✓                    | ✓                 | ✓                 | ✓                 |
   123  | Kubernetes v1.27 + etcd/v3 | ✓ >= v1.4.2          | ✓                 | ✓                 | ✓                 |
   124  | Kubernetes v1.28 + etcd/v3 |                      | ✓ >= v1.5.1       | ✓                 | ✓                 |
   125  | Kubernetes v1.29 + etcd/v3 |                      |                   | ✓ >= v1.6.1       | ✓                 |
   126  | Kubernetes v1.30 + etcd/v3 |                      |                   |                   | ✓ >= v1.7.1       |
   127  
   128  The Kubeadm Control Plane Provider talks to the API server and etcd members of every Workload Cluster whose control plane it owns. It uses the etcd v3 API.
   129  
   130  The Kubeadm Control Plane requires the Kubeadm Bootstrap Provider.
   131  
   132  \*  Newer versions of CoreDNS may not be compatible as an upgrade target for clusters managed with Cluster API. Kubernetes versions marked on the table are supported as an upgrade target only if CoreDNS is not upgraded to the latest version supported by the respective Kubernetes version. The versions supported are represented in the below table.
   133  
   134  ##### CoreDNS
   135  
   136  | CAPI Version         | Max CoreDNS Version for Upgrade |
   137  |----------------------|---------------------------------|
   138  | v1.5 (v1beta1)       | v1.10.1                         |
   139  | >= v1.5.1 (v1beta1)  | v1.11.1                         |
   140  | v1.6 (v1beta1)       | v1.11.1                         |
   141  | v1.7 (v1beta1)       | v1.11.1                         |
   142  
   143  #### Kubernetes version specific notes
   144  
   145  **1.29**:
   146  * In-tree cloud providers are now switched off by default. Please use DisableCloudProviders and DisableKubeletCloudCredentialProvider feature flags if you still need this functionality. (https://github.com/kubernetes/kubernetes/pull/117503)
   147  
   148  **1.24**:
   149  * Kubeadm Bootstrap Provider:
   150  		* `kubeadm` now sets both the `node-role.kubernetes.io/control-plane` and `node-role.kubernetes.io/master` taints on control plane nodes.
   151  		* `kubeadm` now only sets the `node-role.kubernetes.io/control-plane` label on control plane nodes (the `node-role.kubernetes.io/master` label is not set anymore).
   152  * Kubeadm Bootstrap Provider and Kubeadm Control Plane Provider
   153  		* `criSocket` without a scheme prefix has been deprecated in the kubelet since a while. `kubeadm` now shows a warning if no scheme is present and eventually the support for `criSocket`'s without prefix will be dropped. Please adjust the `criSocket` accordingly (e.g. `unix:///var/run/containerd/containerd.sock`) if you are configuring the `criSocket` in CABPK or KCP resources.
   154  
   155  #### clusterctl
   156  
   157  It is strongly recommended to always use the latest version of [clusterctl](../clusterctl/overview.md), in order to get all the fixes/latest changes.
   158  
   159  In case of upgrades, clusterctl should be upgraded first and then used to upgrade all the other components.
   160  
   161  ## Providers Maintained By Independent Teams
   162  
   163  In general, if a Provider version M says it is compatible with Cluster API version N, then version M must be compatible with a subset of the Kubernetes versions supported by Cluster API version N.
   164  
   165  To understand the version compatibility of a specific provider, please see its documentation. This book includes [a list of independent providers](providers.md)