From 3107721135bc052433d9cce98621609107c12ea7 Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Thu, 2 Nov 2023 09:01:14 +0000 Subject: [PATCH] Relax topology spread constraints It was impacting cluster efficiency too much, try a bit looser constraints --- charts/posthog/Chart.yaml | 2 +- .../posthog/templates/_snippet-topologySpreadConstraints.tpl | 4 ++-- charts/posthog/tests/_topologySpreadConstraints.yaml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/posthog/Chart.yaml b/charts/posthog/Chart.yaml index 7b63cb55..3efb67e5 100644 --- a/charts/posthog/Chart.yaml +++ b/charts/posthog/Chart.yaml @@ -11,7 +11,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 30.33.0 +version: 30.34.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. diff --git a/charts/posthog/templates/_snippet-topologySpreadConstraints.tpl b/charts/posthog/templates/_snippet-topologySpreadConstraints.tpl index 6711f8d8..05269810 100644 --- a/charts/posthog/templates/_snippet-topologySpreadConstraints.tpl +++ b/charts/posthog/templates/_snippet-topologySpreadConstraints.tpl @@ -21,12 +21,12 @@ matchLabelKeys: {{- define "_snippet-topologySpreadConstraints" }} {{- if (.Values.includeDefaultTopologySpreadConstraints | default false) }} topologySpreadConstraints: -- maxSkew: 1 +- maxSkew: 2 topologyKey: topology.kubernetes.io/zone whenUnsatisfiable: ScheduleAnyway nodeTaintsPolicy: Honor {{- include "_snippet-selectors" . | nindent 2 }} -- maxSkew: 3 +- maxSkew: 5 topologyKey: kubernetes.io/hostname whenUnsatisfiable: ScheduleAnyway nodeTaintsPolicy: Honor diff --git a/charts/posthog/tests/_topologySpreadConstraints.yaml b/charts/posthog/tests/_topologySpreadConstraints.yaml index 685602a3..0d537695 100644 --- a/charts/posthog/tests/_topologySpreadConstraints.yaml +++ b/charts/posthog/tests/_topologySpreadConstraints.yaml @@ -34,7 +34,7 @@ tests: value: topology.kubernetes.io/zone - equal: path: spec.template.spec.topologySpreadConstraints[0].maxSkew - value: 1 + value: 2 - equal: path: spec.template.spec.topologySpreadConstraints[0].whenUnsatisfiable value: ScheduleAnyway @@ -43,7 +43,7 @@ tests: value: kubernetes.io/hostname - equal: path: spec.template.spec.topologySpreadConstraints[1].maxSkew - value: 3 + value: 5 - equal: path: spec.template.spec.topologySpreadConstraints[1].whenUnsatisfiable value: ScheduleAnyway