You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use kubeRBACproxy to make metrics endpoint to https and I install node-exporter in different cluster from prometheus. And I use serviceaccount token for auth. But the error that always appears is Forbidden when trying to curl https metrics from different cluster.
Describe the solution you'd like.
When the node-exporter installation is finish, there is a note like this :
kube-rbac-proxy endpoint protections is enabled:
- Metrics endpoints is now HTTPS
- Ensure that the client authenticates the requests (e.g. via service account) with the following role permissions:
rules:
- apiGroups: [ "" ]
resources: ["services/prometheus-node-exporter"]
verbs:
- get
So temporary solution, I need to manually add those rules to the node-exporterclusterrole to allow the serviceaccount token to working well.
Possible solution: Add permissions for CustomResources' apiGroups in Role/ClusterRole. Should be used in conjunction with Custom Resource State Metrics configuration.
Describe alternatives you've considered.
Add extraRules: [] in rbac section
Additional context.
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem ?
I use
kubeRBACproxy
to make metrics endpoint tohttps
and I installnode-exporter
in different cluster from prometheus. And I useserviceaccount token
for auth. But the error that always appears isForbidden
when trying to curlhttps
metrics from different cluster.Describe the solution you'd like.
When the
node-exporter
installation is finish, there is a note like this :So temporary solution, I need to manually add those rules to the
node-exporter
clusterrole
to allow theserviceaccount token
to working well.Possible solution: Add permissions for CustomResources' apiGroups in Role/ClusterRole. Should be used in conjunction with Custom Resource State Metrics configuration.
Describe alternatives you've considered.
Add
extraRules: []
inrbac section
Additional context.
No response
The text was updated successfully, but these errors were encountered: