microk8s 未运行。使用 microk8s Inspect 进行更深入的检查

Жек*_*нко 5 ubuntu kubernetes microk8s

重新启动VM后,microk8s停止运行。

Executing this command outputs the following:
microk8s status:
microk8s is not running. use microk8s inspect for a deeper inspection.
microk8s kubectl get pod:
The connection to the server 127.0.0.1 16443 was refused did you specify the right host or port?
Run Code Online (Sandbox Code Playgroud)

我几乎尝试了所有的方法,但没有结果。

小智 2

这里端口不正确。它应该是 6443 而不是 16443。您可以在/etc/kubernetes/kubelet.conf文件中更正主节点上的端口。