k8s集群维护

k8s集群维护

master节点

1、更改配置文件,重新加载

systemctl daemon-reload

2、启动master相关组件

systemctl start kube-apiserver
systemctl start kube-controller-manager
systemctl start kube-scheduler

3、停止master相关组件

systemctl stop kube-apiserver
systemctl stop kube-controller-manager
systemctl stop kube-scheduler

4、重启master相关组件

systemctl restart kube-apiserver
systemctl restart kube-controller-manager
systemctl restart kube-scheduler

5、查看master相关组件状态

systemctl status kube-apiserver
systemctl status kube-controller-manager
systemctl status kube-scheduler

worker节点

1、更改配置后,重启加载

systemctl daemon-reload

2、启动worker端相关组件

systemctl start kube-proxy
systemctl start docker
systemctl start kubelet

3、停止worker端相关组件

systemctl stop kube-proxy
systemctl stop docker
systemctl stop kubelet

4、重启worker端相关组件

systemctl restart kube-proxy
systemctl restart docker
systemctl restart kubelet

5、查看worker端相关组件状态

systemctl status kube-proxy
systemctl status docker
systemctl status kubelet

etcd集群维护

1、更改配置后,重新加载

systemctl daemon-reload

2、启动etcd服务

systemctl start etcd.service

3、停止etcd服务

systemctl stop etcd.service

4、重启etcd服务

systemctl restart etcd.service

5、查看etcd服务状态

systemctl status etcd.service
赞(1) 打赏
特别声明:除特殊标注,本站文章均为原创,遵循CC BY-NC 3.0,转载请注明出处。三伏磨 » k8s集群维护

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏