Kubernetes 关闭服务器前停止服务

关机过程

0.node节点

[root@dn02 ~]# systemctl stop kube-proxy
[root@dn02 ~]# systemctl stop kubelet

1.master

[root@dn01 ~]# systemctl stop kube-scheduler
[root@dn01 ~]# systemctl stop kube-controller-manager
[root@dn01 ~]# systemctl stop kube-apiserver.service

2.关闭 node节点的flanneld 服务

[root@dn02 ~]# systemctl stop flanneld

3.全部节点关闭etcd

[root@dn0X~]# systemctl stop etcd

[root@dn0X ~]# systemctl stop docker

4.全部关机

[root@dn01 ~]# init 0

 

开机过程

systemctl start etcd  三节点

systemctl start flanneld (node 节点)

systemctl start kube-apiserver.service  (默认设置了开机启动, master 节点)

systemctl start kube-scheduler (默认设置了开机启动, master 节点)

systemctl start kube-controller-manager (默认设置了开机启动, master 节点)

systemctl start kubelet(node 节点)

systemctl stop kube-proxy(node 节点)

 

posted @ 2020-01-02 09:47  彦祚  阅读(17245)  评论(0编辑  收藏  举报