您好,登录后才能下订单哦!
查看可升级的集群版本
yum list --showduplicates kubeadm --disableexcludes=kubernetes
yum install -y kubeadm-1.16.3-0 --disableexcludes=kubernetes #所有节点
kubeadm version
kubeadm upgrade plan #查看集群是否可以升级,升级后各组件的版本信息
kubeadm config images list | sed -e 's/^/docker pull /g' -e 's#k8s.gcr.io#registry.cn-hangzhou.aliyuncs.com/google_containers#g' | sh -x
docker images | grep registry.cn-hangzhou.aliyuncs.com/google_containers | awk '{print "docker tag",$1":"$2,$1":"$2}' | sed -e 's/registry.cn-hangzhou.aliyuncs.com\/google_containers/k8s.gcr.io/2' | sh -x
docker images | grep registry.cn-hangzhou.aliyuncs.com/google_containers | awk '{print "docker rmi """$1""":"""$2}' | sh -x
kubeadm upgrade apply v1.16.3
master节点进行升级:
kubeadm upgrade node
升级各个组件
yum install -y kubelet-1.16.3 kubectl-1.16.3 --disableexcludes=kubernetes
systemctl daemon-reload
systemctl restart kubelet
kubeadm upgrade node
yum install -y kubelet-1.16.3 kubectl-1.16.3 --disableexcludes=kubernetes
systemctl daemon-reload
systemctl restart kubelet
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。