diff --git a/manifests/0000_90_console-operator_01_prometheusrbac.yaml b/manifests/0000_90_console-operator_01_prometheusrbac.yaml index ec6caabd4..f04459f36 100644 --- a/manifests/0000_90_console-operator_01_prometheusrbac.yaml +++ b/manifests/0000_90_console-operator_01_prometheusrbac.yaml @@ -21,6 +21,14 @@ rules: - get - list - watch + - apiGroups: + - discovery.k8s.io + resources: + - endpointslices + verbs: + - get + - list + - watch --- # Grant cluster-monitoring access to console-operator metrics apiVersion: rbac.authorization.k8s.io/v1 diff --git a/manifests/0000_90_console-operator_02_servicemonitor.yaml b/manifests/0000_90_console-operator_02_servicemonitor.yaml index 44623c746..80836e479 100644 --- a/manifests/0000_90_console-operator_02_servicemonitor.yaml +++ b/manifests/0000_90_console-operator_02_servicemonitor.yaml @@ -26,4 +26,5 @@ spec: selector: matchLabels: name: console-operator + serviceDiscoveryRole: EndpointSlice diff --git a/manifests/0000_90_console_01_prometheusrbac.yaml b/manifests/0000_90_console_01_prometheusrbac.yaml index a905a63ef..f83307104 100644 --- a/manifests/0000_90_console_01_prometheusrbac.yaml +++ b/manifests/0000_90_console_01_prometheusrbac.yaml @@ -21,6 +21,14 @@ rules: - get - list - watch + - apiGroups: + - discovery.k8s.io + resources: + - endpointslices + verbs: + - get + - list + - watch --- # Grant cluster-monitoring access to console metrics apiVersion: rbac.authorization.k8s.io/v1 diff --git a/manifests/0000_90_console_02_servicemonitor.yaml b/manifests/0000_90_console_02_servicemonitor.yaml index ff0080b7c..bdd6a49fd 100644 --- a/manifests/0000_90_console_02_servicemonitor.yaml +++ b/manifests/0000_90_console_02_servicemonitor.yaml @@ -26,3 +26,4 @@ spec: selector: matchLabels: app: console + serviceDiscoveryRole: EndpointSlice