kubernetes部署metrics-server后执行kubectl top pod或kubectl top node报错
Error from server (ServiceUnavailable): the server is currently unable to handle the request (get pods.metrics.k8s.io)
一、问题检查步骤:
1.1、查看metrics-server服务日志
检查发现metrics-server服务并没有什么异常
1.2、检查kube-apiserver日志
检查发现是由于调用metrics-server无权限,返回了http 403错误
1.3、检查是否配置了以下参数