diff --git a/jsonnet/kube-prometheus/prometheus-adapter/prometheus-adapter.libsonnet b/jsonnet/kube-prometheus/prometheus-adapter/prometheus-adapter.libsonnet index 42cf59e7cdd29fa8dd4bd336c52261866d20636a..e1bc8dcce1ff07fa8276eaceacb8c94159a9bf42 100644 --- a/jsonnet/kube-prometheus/prometheus-adapter/prometheus-adapter.libsonnet +++ b/jsonnet/kube-prometheus/prometheus-adapter/prometheus-adapter.libsonnet @@ -191,7 +191,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet'; local rules = policyRule.new() + policyRule.withApiGroups(['metrics.k8s.io']) + - policyRule.withResources(['pods']) + + policyRule.withResources(['pods', 'nodes']) + policyRule.withVerbs(['get','list','watch']); clusterRole.new() + diff --git a/manifests/prometheus-adapter-clusterRoleAggregatedMetricsReader.yaml b/manifests/prometheus-adapter-clusterRoleAggregatedMetricsReader.yaml index d766a1f43d87aa25186198a7eeec3d732bd8364d..9f0dbb3495d748de8be167007643c9e8696d4fed 100644 --- a/manifests/prometheus-adapter-clusterRoleAggregatedMetricsReader.yaml +++ b/manifests/prometheus-adapter-clusterRoleAggregatedMetricsReader.yaml @@ -11,6 +11,7 @@ rules: - metrics.k8s.io resources: - pods + - nodes verbs: - get - list