您好,登錄后才能下訂單哦!
查看可升級的集群版本
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進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。