一、master节点升级
#1.yum升级kubernetes插件
yum install kubeadm-1.19.16-0 kubelet-1.19.16-0 kubectl-1.19.16-0 --disableexcludes=kubernetes
#2.升级版本到1.19.16
kubeadm upgrade apply 1.19.16
#3.重新加载配置文件
systemctl daemon-reload
#4.重启kubelet服务
systemctl restart kubelet
#5.查看节点版本
[root@k8smaster ~]# kubectl get nodes
NAME STATUS ROLES AGE VERSION
k8smaster Ready master 87d v1.19.16
k8snode1 Ready <none> 87d v1.18.0
二、node节点升级
#1.yum升级kubernetes插件
yum install kubeadm-1.19.16-0 kubelet-1.19.16-0 kubectl-1.19.16-0 --disableexcludes=kubernetes
#2.升级
kubeadm upgrade node
#3.重新加载配置文件
systemctl daemon-reload
#4.重启kubelet服务
systemctl restart kubelet
#5.在master节点查看节点版本
[root@k8smaster ~]# kubectl get nodes
NAME STATUS ROLES AGE VERSION
k8smaster Ready master 87d v1.19.16
k8snode1 Ready <none> 87d v1.19.16
标签:kubectl,16,1.18,1.19,升级,kubelet,kubeadm
From: https://www.cnblogs.com/khtt/p/17129370.html