diff --git a/install/0000_90_cluster-version-operator_00_prometheusrole.yaml b/install/0000_90_cluster-version-operator_00_prometheusrole.yaml index 6ba0cbe5b..6faa5373f 100644 --- a/install/0000_90_cluster-version-operator_00_prometheusrole.yaml +++ b/install/0000_90_cluster-version-operator_00_prometheusrole.yaml @@ -17,3 +17,11 @@ rules: - get - list - watch +- apiGroups: + - discovery.k8s.io + resources: + - endpointslices + verbs: + - get + - list + - watch diff --git a/install/0000_90_cluster-version-operator_02_servicemonitor.yaml b/install/0000_90_cluster-version-operator_02_servicemonitor.yaml index d4ceb3e9b..3f17e954e 100644 --- a/install/0000_90_cluster-version-operator_02_servicemonitor.yaml +++ b/install/0000_90_cluster-version-operator_02_servicemonitor.yaml @@ -24,6 +24,7 @@ spec: selector: matchLabels: k8s-app: cluster-version-operator + serviceDiscoveryRole: EndpointSlice --- apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule