diff --git a/jsonnet/kube-prometheus/components/prometheus.libsonnet b/jsonnet/kube-prometheus/components/prometheus.libsonnet index 5532f532c1..8ff0aebcdd 100644 --- a/jsonnet/kube-prometheus/components/prometheus.libsonnet +++ b/jsonnet/kube-prometheus/components/prometheus.libsonnet @@ -214,11 +214,6 @@ function(params) { namespace:: null, }, rules: [ - { - apiGroups: [''], - resources: ['nodes/metrics'], - verbs: ['get'], - }, { nonResourceURLs: ['/metrics'], verbs: ['get'], @@ -285,7 +280,7 @@ function(params) { rules: [ { apiGroups: [''], - resources: ['services', 'endpoints', 'pods'], + resources: ['services', 'endpoints', 'pods', 'nodes'], verbs: ['get', 'list', 'watch'], }, { diff --git a/manifests/prometheus-clusterRole.yaml b/manifests/prometheus-clusterRole.yaml index 499a151da2..5642e631a1 100644 --- a/manifests/prometheus-clusterRole.yaml +++ b/manifests/prometheus-clusterRole.yaml @@ -9,12 +9,6 @@ metadata: app.kubernetes.io/version: 2.47.0 name: prometheus-k8s rules: -- apiGroups: - - "" - resources: - - nodes/metrics - verbs: - - get - nonResourceURLs: - /metrics verbs: diff --git a/manifests/prometheus-roleSpecificNamespaces.yaml b/manifests/prometheus-roleSpecificNamespaces.yaml index f6ce749e16..2daa7f33b2 100644 --- a/manifests/prometheus-roleSpecificNamespaces.yaml +++ b/manifests/prometheus-roleSpecificNamespaces.yaml @@ -18,6 +18,7 @@ items: - services - endpoints - pods + - nodes verbs: - get - list @@ -56,6 +57,7 @@ items: - services - endpoints - pods + - nodes verbs: - get - list @@ -94,6 +96,7 @@ items: - services - endpoints - pods + - nodes verbs: - get - list