1.题目
Now the node01 is not ready, please find out the root cause and make it to ready, then create a pod that make sure it is running on node01.
2.解析
本题目考测troubleshooting,node01是worker node,大概率都是kubelet出了问题。
3.答案
进入node01节点,查看kubelet运行情况
# 进入node01节点ssh node01# 查看kubelet状态systemctl status kubelet# 发现kubelet运行未运行,因此尝试重启systemctl start kubelet
再次查看node01状态
kubectl get nodenode01恢复正常,根据题意创建一个pod在node01上运行(cluster只有一个节点)
# 创建pod kubectl run test --image=nginx # 查看pod kubectl get pod -owide
