Skip to content

Commit

Permalink
Use ScheduleAnyway for zone to be safe
Browse files Browse the repository at this point in the history
In the case of a full AZ outage we won't be able to schedule new pods otherwise
  • Loading branch information
frankh committed Oct 30, 2023
1 parent 5ae2946 commit e47de33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ matchLabelKeys:
{{- if (.Values.includeDefaultTopologySpreadConstraints | default false) }}
topologySpreadConstraints:
- maxSkew: 1
minDomains: 3
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: DoNotSchedule
whenUnsatisfiable: ScheduleAnyway
nodeTaintsPolicy: Honor
{{- include "_snippet-selectors" . | nindent 2 }}
- maxSkew: 3
Expand Down
2 changes: 1 addition & 1 deletion charts/posthog/tests/_topologySpreadConstraints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ tests:
value: 1
- equal:
path: spec.template.spec.topologySpreadConstraints[0].whenUnsatisfiable
value: DoNotSchedule
value: ScheduleAnyway
- equal:
path: spec.template.spec.topologySpreadConstraints[1].topologyKey
value: kubernetes.io/hostname
Expand Down

0 comments on commit e47de33

Please sign in to comment.