Skip to content
Snippets Groups Projects
Commit e47243b4 authored by Saverio Proto's avatar Saverio Proto
Browse files

metrics-server: enable access to nodes/stats

Without this access the logs of metrics-server will show the following error line:
```
unable to fully scrape metrics from source kubelet_summary:k8s-1: unable to fetch metrics from Kubelet k8s-1 (10.8.10.14): request failed - "403 Forbidden", response: "Forbidden (user=system:serviceaccount:kube-system:metrics-server, verb=get, resource=nodes, subresource=stats)",
```
and `kubectl top nodes` will give no results
parent d1cd9519
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,7 @@ rules: ...@@ -8,6 +8,7 @@ rules:
resources: resources:
- pods - pods
- nodes - nodes
- nodes/stats
- namespaces - namespaces
verbs: verbs:
- get - get
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment