Merge pull request #1730 from nrobert13/prometheus_jsonnet_add_SM_NS_Selector
add serviceMonitorNamespaceSelector to the prometheus jsonnet library
This commit is contained in:
@@ -167,6 +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({}),
|
||||||
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