lentil1016 / kubeadm-ha

Deprecated! Boot a ha kubernetes 1.11.0/1.12.1/1.13.0/1.14.0 cluster with kubeadm.
GNU General Public License v3.0
214 stars 128 forks source link

master上如果停止和启动kube-scheduler #49

Closed opcache closed 5 years ago

opcache commented 5 years ago

按这个项目部署了三台虚拟机,都正常,在其中一台执行systemctl stop docker ps aux |grep etc 看到有 kube-scheduler 和kube-controller-manager开头的进程 怎么正常关闭呢?我kill pid 然后要怎么把这个启动起来 ?

opcache commented 5 years ago

systemctl restart keepalived systemctl restart docker systemctl restart kubelet 貌似这样可以恢复,作者有之前有遇到过吗 ?

lentil1016 commented 5 years ago

systemctl stop docker执行完之后应该不会再看到kube-scheduler和kube-controller-manager进程。至于杀了进程之后只需要把docker启动起来过一段时间kubelet就会把这些自动起起来。如果不想等的话也可以在启动docker后重启一下kubelet立刻刷新状态。重启keepalived是没必要的

lentil1016 commented 5 years ago

我将关闭这个问题,如有需要请重新开启