provide empty hash to serviceMonitorNamespaceSelector, which selects all the namespaces by default
This commit is contained in:
@@ -167,7 +167,7 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
|
|||||||
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: selector.withMatchExpressions({ key: 'k8s-app', operator: 'Exists' }),
|
||||||
serviceMonitorNamespaceSelector: selector.withMatchExpressions({ key: 'prometheus', operator: 'In', values: ['yes', 'true'] }),
|
serviceMonitorNamespaceSelector: selector.withMatchExpressions({}),
|
||||||
nodeSelector: { 'beta.kubernetes.io/os': 'linux' },
|
nodeSelector: { 'beta.kubernetes.io/os': 'linux' },
|
||||||
ruleSelector: selector.withMatchLabels({
|
ruleSelector: selector.withMatchLabels({
|
||||||
role: 'alert-rules',
|
role: 'alert-rules',
|
||||||
|
Reference in New Issue
Block a user