安装Prometheus-adapter后top pod出错无输出_第1张图片
部署完Prometheus的operator后api增加了5条,部署adapter之后这个api没变化,但是已经不能使用top pod了
[root@k8sywyw2:~]# kubectl top pod -n kube-system
W0602 11:22:44.461917 24918 top_pod.go:266] Metrics not available for pod kube-system/coredns-78b7bcc986-bzcg8, age: 10h28m11.46191005s
error: Metrics not available for pod kube-system/coredns-78b7bcc986-bzcg8, age: 10h28m11.46191005s