k8s集群维护

k8s集群维护

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

1
systemctl daemon-reload

2、启动master相关组件

1
2
3
systemctl start kube-apiserver
systemctl start kube-controller-manager
systemctl start kube-scheduler

3、停止master相关组件

1
2
3
systemctl stop kube-apiserver
systemctl stop kube-controller-manager
systemctl stop kube-scheduler

4、重启master相关组件

1
2
3
systemctl restart kube-apiserver
systemctl restart kube-controller-manager
systemctl restart kube-scheduler

5、查看master相关组件状态

1
2
3
systemctl status kube-apiserver
systemctl status kube-controller-manager
systemctl status kube-scheduler

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

1
systemctl daemon-reload

2、启动worker端相关组件

1
2
3
systemctl start kube-proxy
systemctl start docker
systemctl start kubelet

3、停止worker端相关组件

1
2
3
systemctl stop kube-proxy
systemctl stop docker
systemctl stop kubelet

4、重启worker端相关组件

1
2
3
systemctl restart kube-proxy
systemctl restart docker
systemctl restart kubelet

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

1
2
3
systemctl status kube-proxy
systemctl status docker
systemctl status kubelet

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

1
systemctl daemon-reload

2、启动etcd服务

1
systemctl start etcd.service

3、停止etcd服务

1
systemctl stop etcd.service

4、重启etcd服务

1
systemctl restart etcd.service

5、查看etcd服务状态

1
systemctl status etcd.service

随机文章