• -------------------------------------------------------------
  • ====================================

标签:system:anonymous

kubernetes api servers showing down in prometheus (kube-state-metrics) –“forbidden: User \”system:anonymous\“ cannot get path \”/metrics\“”,

I’m new to k8s, prometheus. I’m trying to collect the metrics of each pods with prometheus but unable to so because of the error: API ERROR.{ "kind": "Status", ……

Error from server (Forbidden): Forbidden (user=system:anonymous…)

1、报错信息如下:Error from server (Forbidden): Forbidden (user=system:anonymous, verb=get, resource=nodes, subresource=proxy)12、解决办法绑定一个 cluster-admin 的权限kubectl create cluste……