From e47de3347c79b48ed8eb2f5646171cea8210e1b2 Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Mon, 30 Oct 2023 16:54:59 +0000 Subject: [PATCH] Use ScheduleAnyway for zone to be safe In the case of a full AZ outage we won't be able to schedule new pods otherwise --- .../posthog/templates/_snippet-topologySpreadConstraints.tpl | 3 +-- charts/posthog/tests/_topologySpreadConstraints.yaml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/charts/posthog/templates/_snippet-topologySpreadConstraints.tpl b/charts/posthog/templates/_snippet-topologySpreadConstraints.tpl index 17a3af03..6711f8d8 100644 --- a/charts/posthog/templates/_snippet-topologySpreadConstraints.tpl +++ b/charts/posthog/templates/_snippet-topologySpreadConstraints.tpl @@ -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 diff --git a/charts/posthog/tests/_topologySpreadConstraints.yaml b/charts/posthog/tests/_topologySpreadConstraints.yaml index 806d725c..685602a3 100644 --- a/charts/posthog/tests/_topologySpreadConstraints.yaml +++ b/charts/posthog/tests/_topologySpreadConstraints.yaml @@ -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