Skip to content

Commit 9bc724d

Browse files
committed
Specify tolerations and nodeselector in prometheus/prometheusOperator configuration
1 parent 81528dd commit 9bc724d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

api/kubernetes/kube-prometheus-stack-template.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ kubeStateMetrics:
2323
enabled: false
2424
nodeExporter:
2525
enabled: false
26+
prometheusOperator:
27+
tolerations:
28+
- key: "vendor"
29+
operator: "Equal"
30+
value: "cosmotech"
31+
effect: "NoSchedule"
32+
nodeSelector:
33+
"cosmotech.com/tier": "monitoring"
2634
prometheus:
2735
enabled: true
2836
crname: prometheus
@@ -38,7 +46,7 @@ prometheus:
3846
value: "cosmotech"
3947
effect: "NoSchedule"
4048
nodeSelector:
41-
"cosmotech.com/tier": "services"
49+
"cosmotech.com/tier": "monitoring"
4250
podMetadata:
4351
annotations:
4452
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"

0 commit comments

Comments
 (0)