diff --git a/manifests/kubernetesControlPlane-serviceMonitorApiserver.yaml b/manifests/kubernetesControlPlane-serviceMonitorApiserver.yaml index bfc1f315455176330572d5b5c56a91089cea2879..75fe828d2cc84fe38875433911dbd9b0743235da 100644 --- a/manifests/kubernetesControlPlane-serviceMonitorApiserver.yaml +++ b/manifests/kubernetesControlPlane-serviceMonitorApiserver.yaml @@ -65,6 +65,14 @@ spec: tlsConfig: caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt serverName: kubernetes + - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token + interval: 5s + path: /metrics/slis + port: https + scheme: https + tlsConfig: + caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt + serverName: kubernetes jobLabel: component namespaceSelector: matchNames: diff --git a/manifests/kubernetesControlPlane-serviceMonitorKubeControllerManager.yaml b/manifests/kubernetesControlPlane-serviceMonitorKubeControllerManager.yaml index 1a71e8e458338c384986f6fa3765ea6ed8839b09..e8955d208cfea0dbb6d469a1a92a8266df6e1389 100644 --- a/manifests/kubernetesControlPlane-serviceMonitorKubeControllerManager.yaml +++ b/manifests/kubernetesControlPlane-serviceMonitorKubeControllerManager.yaml @@ -51,6 +51,13 @@ spec: scheme: https tlsConfig: insecureSkipVerify: true + - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token + interval: 5s + path: /metrics/slis + port: https-metrics + scheme: https + tlsConfig: + insecureSkipVerify: true jobLabel: app.kubernetes.io/name namespaceSelector: matchNames: diff --git a/manifests/kubernetesControlPlane-serviceMonitorKubeScheduler.yaml b/manifests/kubernetesControlPlane-serviceMonitorKubeScheduler.yaml index 7fd84fc373a34ff32310cedbc661b045ea62fb24..19a6626f8dd0b2d36c76478755184f718233551e 100644 --- a/manifests/kubernetesControlPlane-serviceMonitorKubeScheduler.yaml +++ b/manifests/kubernetesControlPlane-serviceMonitorKubeScheduler.yaml @@ -14,6 +14,13 @@ spec: scheme: https tlsConfig: insecureSkipVerify: true + - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token + interval: 5s + path: /metrics/slis + port: https-metrics + scheme: https + tlsConfig: + insecureSkipVerify: true jobLabel: app.kubernetes.io/name namespaceSelector: matchNames: diff --git a/manifests/kubernetesControlPlane-serviceMonitorKubelet.yaml b/manifests/kubernetesControlPlane-serviceMonitorKubelet.yaml index 96bbdbab726b2ae0ede0de78015674c7321d83d7..2321391741e3d5790cdbcfe79c2f2c1c214b122b 100644 --- a/manifests/kubernetesControlPlane-serviceMonitorKubelet.yaml +++ b/manifests/kubernetesControlPlane-serviceMonitorKubelet.yaml @@ -96,6 +96,19 @@ spec: scheme: https tlsConfig: insecureSkipVerify: true + - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token + honorLabels: true + interval: 5s + path: /metrics/slis + port: https-metrics + relabelings: + - action: replace + sourceLabels: + - __metrics_path__ + targetLabel: metrics_path + scheme: https + tlsConfig: + insecureSkipVerify: true jobLabel: app.kubernetes.io/name namespaceSelector: matchNames: diff --git a/manifests/prometheus-clusterRole.yaml b/manifests/prometheus-clusterRole.yaml index 7abc5933001b8f611a597244835e04ad95ad4467..ea971084e7a88e2e1e6c3f4fa4f03aa2e6efe7ba 100644 --- a/manifests/prometheus-clusterRole.yaml +++ b/manifests/prometheus-clusterRole.yaml @@ -17,5 +17,6 @@ rules: - get - nonResourceURLs: - /metrics + - /metrics/slis verbs: - get