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