kube-prometheus: Fix rule label selector

This commit is contained in:
Frederic Branczyk
2018-04-22 10:50:58 +01:00
parent 7c07940cb8
commit 0610c45e13

View File

@@ -4,5 +4,6 @@ local configMap = k.core.v1.configMap;
{
new(namespace, ruleFiles)::
configMap.new("prometheus-k8s-rules", ruleFiles) +
configMap.mixin.metadata.withLabels({role: "alert-rules", prometheus: "k8s"}) +
configMap.mixin.metadata.withNamespace(namespace)
}