add namespace to the component selectors
in order to select the right components in case multiple operators are running in the same cluster
This commit is contained in:
@@ -32,9 +32,9 @@ local configMapList = k.core.v1.configMapList;
|
|||||||
coreDNSSelector: 'job="kube-dns"',
|
coreDNSSelector: 'job="kube-dns"',
|
||||||
podLabel: 'pod',
|
podLabel: 'pod',
|
||||||
|
|
||||||
alertmanagerSelector: 'job="alertmanager-main"',
|
alertmanagerSelector: 'job="alertmanager-main",namespace="' + $._config.namespace + '"',
|
||||||
prometheusSelector: 'job="prometheus-k8s"',
|
prometheusSelector: 'job="prometheus-' + $._config.prometheus.name + '",namespace="' + $._config.namespace + '"',
|
||||||
prometheusOperatorSelector: 'job="prometheus-operator"',
|
prometheusOperatorSelector: 'job="prometheus-operator",namespace="' + $._config.namespace + '"',
|
||||||
|
|
||||||
jobs: {
|
jobs: {
|
||||||
Kubelet: $._config.kubeletSelector,
|
Kubelet: $._config.kubeletSelector,
|
||||||
|
Reference in New Issue
Block a user