- Upgrade version by version, example 1.18->1.19->1.20,…
- Check next version of kubeadm, select next max version
yum list --showduplicates kubeadm --disableexcludes=kubernetes
- Upgrade kubeadm to next version
sudo yum install -y kubeadm-<version> --disableexcludes=kubernetes
- Verify new kubeadm version
kubeadm version
- Find upgrade plan
kubeadm upgrade plan
- Upgrade to max version in plan
kubeadm upgrade apply <version>
- Upgrade node
kubeadm upgrade node
- Restart service
sudo systemctl daemon-reload sudo systemctl restart kubelet