From 3e122b90fa5c84f5a8b7da474e7fdd5b462fff4c Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Tue, 29 Oct 2024 10:19:36 -0400 Subject: [PATCH] feat(talos): add kube scheduler default topologyspreadcontraints Signed-off-by: Devin Buhl --- .../talos/patches/controller/cluster.yaml.j2 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/bootstrap/templates/kubernetes/bootstrap/talos/patches/controller/cluster.yaml.j2 b/bootstrap/templates/kubernetes/bootstrap/talos/patches/controller/cluster.yaml.j2 index aa3a9f22..b4a9685b 100644 --- a/bootstrap/templates/kubernetes/bootstrap/talos/patches/controller/cluster.yaml.j2 +++ b/bootstrap/templates/kubernetes/bootstrap/talos/patches/controller/cluster.yaml.j2 @@ -10,3 +10,16 @@ cluster: scheduler: extraArgs: bind-address: 0.0.0.0 + config: + apiVersion: kubescheduler.config.k8s.io/v1 + kind: KubeSchedulerConfiguration + profiles: + - schedulerName: default-scheduler + pluginConfig: + - name: PodTopologySpread + args: + defaultingType: List + defaultConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: ScheduleAnyway