From 75c655d08bb226e76acb37f6b352c83a646f0262 Mon Sep 17 00:00:00 2001 From: Marius Oprin Date: Fri, 13 May 2022 12:23:36 +0300 Subject: [PATCH] Add control-plane toleration for Prometheus for Windows tests --- .../pkg/prometheus/manifests/prometheus-prometheus.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clusterloader2/pkg/prometheus/manifests/prometheus-prometheus.yaml b/clusterloader2/pkg/prometheus/manifests/prometheus-prometheus.yaml index 3fa812d7f3..f1cb90a146 100644 --- a/clusterloader2/pkg/prometheus/manifests/prometheus-prometheus.yaml +++ b/clusterloader2/pkg/prometheus/manifests/prometheus-prometheus.yaml @@ -43,6 +43,12 @@ spec: - key: "monitoring" operator: "Exists" effect: "NoSchedule" + # Windows test jobs spawn clusters without Linux nodes. Add a toleration for Prometheus to be scheduled on the control-plane nodes + {{ if $PROMETHEUS_SCRAPE_WINDOWS_NODE_EXPORTER }} + - key: "node-role.kubernetes.io/master" + operator: "Exists" + effect: "NoSchedule" + {{ end }} serviceAccountName: prometheus-k8s serviceMonitorNamespaceSelector: {} serviceMonitorSelector: {}