k8s upgrade worker node

2023-12-28

k8s upgrade worker node

1、在master上执行(使node节点不可被调度)
#kubectl drain node --ignore-daemonsets

2、node 节点安装需要升级版本
yum -y install kubeadm-v1.28.4 kubelet-v1.28.4 kubectl-v1.28.4

sh 5image_pull.sh

3、在master执行upgrade
[root@master ~]# kubeadm upgrade node
重启kubelet
[root@node ~]# systemctl daemon-reload
[root@node ~]# systemctl restart kubelet.service

5、取消节点不可调度

[root@master ~]# kubectl uncordon node

分类:Linux | 标签: |

相关日志

评论被关闭!