Merge pull request #1730 from nrobert13/prometheus_jsonnet_add_SM_NS_Selector

add serviceMonitorNamespaceSelector to the prometheus jsonnet library
This commit is contained in:
Frederic Branczyk
2018-08-07 09:27:19 +02:00
committed by GitHub

View File

@@ -167,6 +167,7 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
baseImage: $._config.imageRepos.prometheus,
serviceAccountName: 'prometheus-' + $._config.prometheus.name,
serviceMonitorSelector: selector.withMatchExpressions({ key: 'k8s-app', operator: 'Exists' }),
serviceMonitorNamespaceSelector: selector.withMatchExpressions({}),
nodeSelector: { 'beta.kubernetes.io/os': 'linux' },
ruleSelector: selector.withMatchLabels({
role: 'alert-rules',