kubeadm搭建的K8S集群升级
#升级版本到1.23.4##升级mater-01yum list --showduplicates kubeadm --disableexcludes=kubernetesyum install -y kubeadm-1.23.4 --disableexcludes=kuberneteskubectl drain master-01 --ignore-daemonsetskubeadm upgra
·
#升级版本到1.23.4
##升级mater-01
yum list --showduplicates kubeadm --disableexcludes=kubernetes
yum install -y kubeadm-1.23.4 --disableexcludes=kubernetes
kubectl drain master-01 --ignore-daemonsets
kubeadm upgrade plan
kubeadm upgrade apply v1.23.4
kubectl uncordon master-01
yum install -y kubelet-1.23.4 kubectl-1.23.4 --disableexcludes=kubernetes
systemctl daemon-reload
systemctl restart kubelet
##升级node
yum install -y kubeadm-1.23.4 --disableexcludes=kubernetes
kubectl drain node-01 --ignore-daemonsets #master节点执行
kubeadm upgrade node
yum install -y kubelet-1.23.4 kubectl-1.23.4 --disableexcludes=kubernetes
systemctl daemon-reload
systemctl restart kubelet
kubectl uncordon node-01 #master节点执行
更多推荐
已为社区贡献9条内容
所有评论(0)