From 78784e1855d340b95bd3baeb7b567a9501bd6a83 Mon Sep 17 00:00:00 2001 From: machine424 Date: Mon, 9 Feb 2026 11:14:47 +0100 Subject: [PATCH] chore: add permissions on endpointslice to Prometheus Role and use serviceDiscoveryRole: EndpointSlice in ServiceMonitors --- manifests/05-prometheus_role.yaml | 8 ++++++++ manifests/09-servicemonitor.yaml | 1 + 2 files changed, 9 insertions(+) diff --git a/manifests/05-prometheus_role.yaml b/manifests/05-prometheus_role.yaml index 4a7790021..7af67c13b 100644 --- a/manifests/05-prometheus_role.yaml +++ b/manifests/05-prometheus_role.yaml @@ -20,3 +20,11 @@ rules: - get - list - watch +- apiGroups: + - discovery.k8s.io + resources: + - endpointslices + verbs: + - get + - list + - watch diff --git a/manifests/09-servicemonitor.yaml b/manifests/09-servicemonitor.yaml index 485eba9d7..d66a9b5a5 100644 --- a/manifests/09-servicemonitor.yaml +++ b/manifests/09-servicemonitor.yaml @@ -33,3 +33,4 @@ spec: selector: matchLabels: app: insights-operator + serviceDiscoveryRole: EndpointSlice