1.题目概述
- 节点wk8s-node-0状态为NotReady,查看原因并恢复状态为Ready
-
2.解析
通过get nodes查看异常节点,登录节点查看kubelet等组件的status并判断原因
- 启动kubelet并enable kubelet即可
3.参考答案
# 查看节点状态
kubectl get nodes
# 切换到故障节点
ssh wk8s-node-0
# 查看kubelet组件状态
systemctl status kubelet
# 开启kubelet
systemctl enable kubelet
# 重启kubelet
systemctl restart kubelet
# 再次查看kubelet状态
systemctl status kubelet