kubectl get node 偶尔会报错
来源:4-7 初始化Kubernetes Master

酷乐虎
2022-07-28
老师
kubectl get node 和 kubectl get po -n kube-system 有时候能正常访问,如上图,有时候就是提示
“The connection to the server 192.168.56.101:6443 was refused - did you specify the right host or port?”错误,
查看kube日志有时候是上述:
error getting node “master”: Get “https://192.168.56.101:6443/api/v1/nodes/master?timeout=10s”: dial tcp 192.168.56.101:6443: connect: connection refused
有时候 是如下图
老师,这样该怎么去排查问题?
写回答
1回答
-
清风
2022-07-28
看你的kube-system 的pod是否都起来了
072023-03-24
相似问题