From ec915f7b476651422ce2f6bd6d499b325e53d91e Mon Sep 17 00:00:00 2001 From: paulfantom Date: Sat, 7 Oct 2023 11:09:11 +0200 Subject: [PATCH] explicitly enable ScrapeConfig support --- jsonnet/kube-prometheus/components/prometheus.libsonnet | 2 ++ manifests/prometheus-prometheus.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/jsonnet/kube-prometheus/components/prometheus.libsonnet b/jsonnet/kube-prometheus/components/prometheus.libsonnet index 5532f532c1..3b7f5221de 100644 --- a/jsonnet/kube-prometheus/components/prometheus.libsonnet +++ b/jsonnet/kube-prometheus/components/prometheus.libsonnet @@ -340,6 +340,8 @@ function(params) { probeNamespaceSelector: {}, ruleNamespaceSelector: {}, ruleSelector: p._config.ruleSelector, + scrapeConfigSelector: {}, + scrapeConfigNamespaceSelector: {}, serviceMonitorSelector: {}, serviceMonitorNamespaceSelector: {}, nodeSelector: { 'kubernetes.io/os': 'linux' }, diff --git a/manifests/prometheus-prometheus.yaml b/manifests/prometheus-prometheus.yaml index b37413654e..676d761233 100644 --- a/manifests/prometheus-prometheus.yaml +++ b/manifests/prometheus-prometheus.yaml @@ -38,6 +38,8 @@ spec: memory: 400Mi ruleNamespaceSelector: {} ruleSelector: {} + scrapeConfigNamespaceSelector: {} + scrapeConfigSelector: {} securityContext: fsGroup: 2000 runAsNonRoot: true