Browse Source

Prometheus nodeselector defaults to hosted nodeselector

Vadim Rutkovsky 6 years ago
parent
commit
84a160d0b3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      roles/openshift_prometheus/defaults/main.yaml

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

@@ -11,7 +11,7 @@ openshift_prometheus_alerts_hostname: alerts-{{openshift_prometheus_namespace}}.
 openshift_prometheus_alertmanager_hostname: alertmanager-{{openshift_prometheus_namespace}}.{{openshift_master_default_subdomain}}
 
 
-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