forked from k-space/kube
monitoring: Move to topologySpreadConstraints
This commit is contained in:
@@ -45,16 +45,13 @@ spec:
|
||||
operator: Equal
|
||||
value: monitoring
|
||||
effect: NoSchedule
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
- labelSelector:
|
||||
matchExpressions:
|
||||
- key: app
|
||||
operator: In
|
||||
values:
|
||||
- ping-exporter
|
||||
topologyKey: "kubernetes.io/hostname"
|
||||
topologySpreadConstraints:
|
||||
- maxSkew: 1
|
||||
topologyKey: topology.kubernetes.io/zone
|
||||
whenUnsatisfiable: DoNotSchedule
|
||||
labelSelector:
|
||||
matchLabels:
|
||||
app: ping-exporter
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
|
Reference in New Issue
Block a user