From aa83fc199114f78826c1da971fa14295417e1e22 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Mon, 3 Feb 2025 12:37:34 +0100 Subject: [PATCH] feat(clustertool): disable scheduler ImageLocality Signed-off-by: Kjeld Schouten --- .../embed/generic/patches/controlplane.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/clustertool/embed/generic/patches/controlplane.yaml b/clustertool/embed/generic/patches/controlplane.yaml index f45782a2ca5..1ccfedae0eb 100644 --- a/clustertool/embed/generic/patches/controlplane.yaml +++ b/clustertool/embed/generic/patches/controlplane.yaml @@ -48,3 +48,23 @@ - os:admin allowedKubernetesNamespaces: - system-upgrade +- op: add + path: /cluster/scheduler + value: + config: + apiVersion: kubescheduler.config.k8s.io/v1 + kind: KubeSchedulerConfiguration + profiles: + - schedulerName: default-scheduler + plugins: + score: + disabled: + - name: ImageLocality + pluginConfig: + - name: PodTopologySpread + args: + defaultingType: List + defaultConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: ScheduleAnyway