Browse Source

Merge pull request #8377 from vrutkovs/prometheus-nodeselector

Prometheus nodeselector defaults to hosted nodeselector
OpenShift Merge Robot 6 năm trước cách đây
mục cha
commit
5bcfc7c708
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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