From 0854669f9163b28d8dd7f45f39e5fbdef282ca6d Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Wed, 12 Sep 2018 10:19:33 -0500 Subject: [PATCH] Fixes #491: Prometheus Operator ClusterRole missing some permissions. --- .../templates/prometheus/prometheus-bundle.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/02-path-working-with-clusters/201-cluster-monitoring/templates/prometheus/prometheus-bundle.yaml b/02-path-working-with-clusters/201-cluster-monitoring/templates/prometheus/prometheus-bundle.yaml index 3f435f47..c761a62c 100644 --- a/02-path-working-with-clusters/201-cluster-monitoring/templates/prometheus/prometheus-bundle.yaml +++ b/02-path-working-with-clusters/201-cluster-monitoring/templates/prometheus/prometheus-bundle.yaml @@ -40,6 +40,7 @@ rules: - alertmanagers - prometheuses - servicemonitors + - prometheusrules verbs: - "*" - apiGroups: @@ -55,16 +56,19 @@ rules: - apiGroups: [""] resources: - pods - verbs: ["list", "delete"] + verbs: ["list", "delete", "watch"] - apiGroups: [""] resources: - services - endpoints - verbs: ["get", "create", "update"] + verbs: ["get", "create", "update", "watch", "list"] - apiGroups: [""] resources: - nodes verbs: ["list", "watch"] +- nonResourceURLs: + - /metrics + verbs: ["get"] - apiGroups: [""] resources: - namespaces