yum install -y kubeadm-1.22.1-0.x86_64 kubelet-1.22.1-0.x86_64 kubectl-1.22.1-0.x86_64

kubeadm upgrade plan

拉取镜像,注意coredns的镜像需要tag一下

docker pull registry.aliyuncs.com/google_containers/kube-apiserver:v1.22.1
docker pull registry.aliyuncs.com/google_containers/kube-controller-manager:v1.22.1
docker pull registry.aliyuncs.com/google_containers/kube-scheduler:v1.22.1
docker pull registry.aliyuncs.com/google_containers/kube-proxy:v1.22.1
docker pull registry.aliyuncs.com/google_containers/etcd:3.5.0-0
docker pull registry.aliyuncs.com/google_containers/coredns:1.8.4
docker tag  registry.aliyuncs.com/google_containers/coredns:1.8.4 registry.aliyuncs.com/google_containers/coredns:v1.8.4

kubeadm upgrade apply v1.22.1


有节点太老了,先踢掉

可以升级了:

等几分钟:

systemctl daemon-reload
service kubelet restart
kubectl get nodes

kubectl version

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code