Skip to content

Upgrade Kubernetes cluster from v1.23 to v1.24 or later

pixiake edited this page May 22, 2024 · 2 revisions

Prepare

  1. Modify configmap kubeadm-config
kubectl -n kube-system edit cm kubeadm-config

## Delete the removed featuregate: TTLAfterFinished=true
## There are three places for feature-gates in this configmap.

image

  1. Modify configmap kubelet-config-1.23
kubectl -n kube-system edit cm kubelet-config-1.23 

## Delete the removed featuregate: TTLAfterFinished=true

image

Upgrade

  1. Download latest kubekey
curl -sSL https://get-kk.kubesphere.io | sh -
  1. Start upgrade
./kk upgrade -f config-sample.yaml --with-kubernetes v1.26.5 --skip-dependency-check
Clone this wiki locally