文档首页> 云容器引擎 CCE> 常见问题> API&kubectl> kubectl top node命令为何报错
更新时间:2022-10-27 GMT+08:00
分享

kubectl top node命令为何报错

故障现象

执行kubectl top node命令报错Error from server (ServiceUnavailable): the server is currently unable to handle the request (get nodes.metrics.k8s.io)

可能原因

执行kubectl时出现Error from server (ServiceUnavailable)时,表示未能连接到集群,需要检查kubectl到集群Master节点的网络是否能够连通。

解决方法

  • 如果是在集群外部执行kubectl,请检查集群是否绑定公网IP,如已绑定,请重新下载kubeconfig文件配置,然后重新执行kubectl命令。
  • 如果是在集群内节点上执行kubectl,请检查节点的安全组,是否放通Node节点与Master节点TCP/UDP互访,安全组的详细说明请参见集群安全组规则配置
分享:

API&kubectl 所有常见问题

more