Skip to content

Commit

Permalink
Add control-plane toleration for Prometheus for Windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oprinmarius committed May 13, 2022
1 parent 0a98f17 commit 75c655d
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -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: {}
Expand Down

0 comments on commit 75c655d

Please sign in to comment.