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