Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[kube-state-metrics] Missing permissions for ingressclasses #5336

Open
strowi opened this issue Feb 19, 2025 · 0 comments
Open

[kube-state-metrics] Missing permissions for ingressclasses #5336

strowi opened this issue Feb 19, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@strowi
Copy link

strowi commented Feb 19, 2025

Describe the bug a clear and concise description of what the bug is.

Hi,

after adding ingressclasses to the collectors, i am still missing the metric kube_ingressclass_info. And am getting logs like

E0219 21:32:58.922868       1 reflector.go:148] pkg/mod/k8s.io/client-go@v0.27.5/tools/cache/reflector.go:231: Failed to watch *v1.IngressClass: failed to list *v1.IngressClass: ingressclasses.networking.k8s.io is forbidden: User "system:serviceaccount:cattle-monitoring-system:rancher-monitoring-kube-state-metrics" cannot list resource "ingressclasses" in API group "networking.k8s.io" at the cluster scope

After adding this to the clusterrole, log-error was gone and metrics appeared.

What's your helm version?

v3.17.1

What's your kubectl version?

v1.32.2

Which chart?

kube-state-metrics

What's the chart version?

5.30.0

What happened?

No response

What you expected to happen?

No response

How to reproduce it?

No response

Enter the changed values of values.yaml?

No response

Enter the command that you execute and failing/misfunctioning.

helm install chart test --values values.yaml

Anything else we need to know?

Probably just needs another if her

@strowi strowi added the bug Something isn't working label Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant