metrics-server状态是running,但是无法获取集群信息error: Metrics API not available
1、现象
安装Kuboard之前,使用kubectl top pods是可以得到集群的容器资源占用情况的。
但是安装了Kuboard之后,kubectl top pods指令一直无效。并且报错
2、按Kuboard的提示检查错误
2.1 重置metrics-server,无效
2.2 metrics-server状态是running,正常
2.3 检查ApiService
curl -ik https://10.102.193.60:443/apis/metrics.k8s.io/v1beta1