Skip to content

how to allow non cluster-admins access to metrics #1692

@Der-Sysop

Description

@Der-Sysop

I'm trying (and failing) to allow access to metrics, e.g.
kubectl top nodes
kubectl top pods
to users that are not cluster admins.
I tried

  • apiGroups: ["metrics.k8s.io"]
    resources: [""]
    verbs: ["get", "list"]

Am i doing something wrong?
I found nothing in docs or faq about how to do that ..

Thanks.

Metadata

Metadata

Assignees

Labels

kind/supportCategorizes issue or PR as a support question.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

Status

Needs Review (PR) or Response (Issue)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions