Преглед на файлове

Merge pull request #8377 from vrutkovs/prometheus-nodeselector

Prometheus nodeselector defaults to hosted nodeselector
OpenShift Merge Robot преди 6 години
родител
ревизия
5bcfc7c708
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      roles/openshift_prometheus/defaults/main.yaml

+ 1 - 1
roles/openshift_prometheus/defaults/main.yaml

@@ -46,7 +46,7 @@ l_openshift_prometheus_alertmanager_image_version: "{{ openshift_prometheus_aler
 l_openshift_prometheus_alertbuffer_image_version: "{{ openshift_prometheus_alertbuffer_image_version | default('v0.0.2') }}"
 l_openshift_prometheus_node_exporter_image_version: "{{ openshift_prometheus_node_exporter_image_version | default('v0.15.2') }}"
 
-openshift_prometheus_node_selector: {"node-role.kubernetes.io/infra":"true"}
+openshift_prometheus_node_selector: "{{ openshift_hosted_infra_selector | default('node-role.kubernetes.io/infra=true') | map_from_pairs }}"
 
 openshift_prometheus_service_port: 443
 openshift_prometheus_service_targetport: 8443