mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-08-31 03:11:06 +02:00
kube-promethes: Fix default serviceMonitorSelector
This commit is contained in:
parent
2c27ec76a1
commit
ff878498df
@ -21,7 +21,7 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
|
|||||||
replicas: 2,
|
replicas: 2,
|
||||||
rules: {},
|
rules: {},
|
||||||
renderedRules: {},
|
renderedRules: {},
|
||||||
namespaces: ["default", "kube-system",$._config.namespace],
|
namespaces: ['default', 'kube-system', $._config.namespace],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -166,8 +166,8 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
|
|||||||
version: $._config.versions.prometheus,
|
version: $._config.versions.prometheus,
|
||||||
baseImage: $._config.imageRepos.prometheus,
|
baseImage: $._config.imageRepos.prometheus,
|
||||||
serviceAccountName: 'prometheus-' + $._config.prometheus.name,
|
serviceAccountName: 'prometheus-' + $._config.prometheus.name,
|
||||||
serviceMonitorSelector: selector.withMatchExpressions({ key: 'k8s-app', operator: 'Exists' }),
|
serviceMonitorSelector: {},
|
||||||
serviceMonitorNamespaceSelector: selector.withMatchExpressions({}),
|
serviceMonitorNamespaceSelector: {},
|
||||||
nodeSelector: { 'beta.kubernetes.io/os': 'linux' },
|
nodeSelector: { 'beta.kubernetes.io/os': 'linux' },
|
||||||
ruleSelector: selector.withMatchLabels({
|
ruleSelector: selector.withMatchLabels({
|
||||||
role: 'alert-rules',
|
role: 'alert-rules',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user