for SERVICES in etcd kube-apiserver kube-controller-manager kube-scheduler flanneld; do
systemctl restart $SERVICES
systemctl enable $SERVICES
systemctl status $SERVICES
done
还有
for SERVICES in kube-proxy kubelet flanneld docker; do
systemctl restart $SERVICES
systemctl enable $SERVICES
systemctl status $SERVICES
done
2条答案
按热度按时间2fjabf4q1#
我认为这应该有所帮助:
还有
这归功于BrandonPotter/restart-kubectl-master-services
i5desfxk2#
我这样做:
然后道:
其中container_id是从前面的命令中获得的容器的标识符。不是所有的东西都需要重新启动,所以我手动地做这个。需要重新启动的东西: