monitoring: Move to topologySpreadConstraints

This commit is contained in:
2024-08-21 07:11:06 +03:00
parent 3280b25a83
commit f1a2051838
6 changed files with 44 additions and 30 deletions

View File

@@ -15,6 +15,14 @@ kind: Prometheus
metadata:
name: prometheus
spec:
topologySpreadConstraints:
- maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app.kubernetes.io/instance: prometheus
app.kubernetes.io/name: prometheus
nodeSelector:
dedicated: monitoring
tolerations: