Skip to content

Commit

Permalink
Use Hostname instead of Zone for pod anti-affinity
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianeicher committed Apr 12, 2024
1 parent 452af59 commit aeed23b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/generic-service/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ spec:
{{- if .Values.scheduling.podAntiAffinity }}
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- topologyKey: topology.kubernetes.io/zone
- topologyKey: kubernetes.io/hostname
labelSelector:
matchLabels:
{{- range $key, $value := .Values.scheduling.podAntiAffinity }}
Expand Down

0 comments on commit aeed23b

Please sign in to comment.