Given an existing Kubernetes cluster running version 1.20.1,
upgrade all of Kubernetes control plane and node components
on the master node only to version 1.20.2
You are also expected to upgrade kubelet and kubectl
on the master node。
Be sure to drain the master node
before upgrading it and uncordon it after the upgrade.
Do not upgrade the worker nodes,etcd,the container manager,
the CNI plugin,the DNS service or any other addons.k get nodeapt updateapt-cache madison kubeadmapt-get update && apt-get install -y --allow-change-held-packages kubeadm=1.20.2-00kubeadm versionkubeadm upgrade plankubeadm upgrade apply v1.20.2k drain master-1 --ignore-daemonsetsapt-get update && apt-get install -y --allow-change-held-packages kubelet=1.20.2-00 kubectl=1.20.2-00systemctl daemon-reloadsystemctl restart kubeletk uncordon master-1k get node1
2
3
4
5
6
7
8
9
10
11
12
13