#升级版本到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节点执行

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐