Skip to content

CKS: kubeadm config uses v1beta3, which kubeadm 1.37 rejects #14897

Backlog

Description

@bhouse-nexthop

Problem

For a cluster with external etcd nodes, CKS writes /etc/kubernetes/kubeadm-config.yaml with apiVersion: kubeadm.k8s.io/v1beta3 for every Kubernetes version and runs kubeadm init --config with it.

v1beta4 replaced v1beta3 in Kubernetes 1.31. kubeadm 1.37 no longer reads v1beta3:

error: your configuration file uses an old API spec: "kubeadm.k8s.io/v1beta3" (kind: "ClusterConfiguration"). Please use kubeadm v1.36 instead and run 'kubeadm config migrate ...'

So kubeadm init fails for an external etcd cluster on 1.37 or later. kubeadm before 1.31 doesn't know v1beta4, so the version has to depend on the cluster's Kubernetes version.

Expected

v1beta4 for Kubernetes 1.31 and later, v1beta3 for older versions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions