Kube-state-metrics not working

241 views
Skip to first unread message

nishan...@atmecs.com

unread,
Jul 8, 2022, 8:00:52 AM7/8/22
to Prometheus Users
Hello @all

Kubernetes Version: 1.23.7-gke.1400
Kube-state-metrics Version: 2.5.0
I am seeing an issue with kube-state-metircs on GKE. Suddenly it has stopped working. I compared manifets of clusterrole, clusterolebinding and serviceaccount and all looks good. Still e are getting below error. 

E0708 11:16:16.031316       1 reflector.go:138] pkg/mod/k8s.io/clie...@v0.24.1/tools/cache/reflector.go:167: Failed to watch *v1.Ingress: failed to list *v1.Ingress: ingresses.networking.k8s.io is forbidden: User "system:serviceaccount:monitoring:prometheus-kube-state-metrics" cannot list resource "ingresses" in API group "networking.k8s.io" at the cluster scope

Similar error for all other k8s resources.


Does any know any related issues/solutions?

Thanks 
Reply all
Reply to author
Forward
0 new messages