Skip to content
Snippets Groups Projects
Commit 7e055479 authored by Robert Nemeti's avatar Robert Nemeti
Browse files

add namespace to the component selectors

in order to select the right components in case multiple operators are running in the same cluster
parent 9c467d23
Branches
Tags
No related merge requests found
......@@ -32,9 +32,9 @@ local configMapList = k.core.v1.configMapList;
coreDNSSelector: 'job="kube-dns"',
podLabel: 'pod',
alertmanagerSelector: 'job="alertmanager-main"',
prometheusSelector: 'job="prometheus-k8s"',
prometheusOperatorSelector: 'job="prometheus-operator"',
alertmanagerSelector: 'job="alertmanager-main",namespace="' + $._config.namespace + '"',
prometheusSelector: 'job="prometheus-' + $._config.prometheus.name + '",namespace="' + $._config.namespace + '"',
prometheusOperatorSelector: 'job="prometheus-operator",namespace="' + $._config.namespace + '"',
jobs: {
Kubelet: $._config.kubeletSelector,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment