From 27b90e60ea2e61de0ae566488d7baf4f163f3e31 Mon Sep 17 00:00:00 2001 From: Robin Ketelbuters Date: Thu, 28 Nov 2024 08:14:05 +0100 Subject: [PATCH] feat: Enable setting schedulerName in Helm chart --- charts/karpenter/templates/deployment.yaml | 3 +++ charts/karpenter/values.yaml | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/karpenter/templates/deployment.yaml b/charts/karpenter/templates/deployment.yaml index c48718497aeb..f43822270dd6 100644 --- a/charts/karpenter/templates/deployment.yaml +++ b/charts/karpenter/templates/deployment.yaml @@ -56,6 +56,9 @@ spec: {{- if .Values.hostNetwork }} hostNetwork: true {{- end }} + {{- with .Values.schedulerName }} + schedulerName: {{ . | quote }} + {{- end }} containers: - name: controller securityContext: diff --git a/charts/karpenter/values.yaml b/charts/karpenter/values.yaml index 72ff1160bbc3..d3fce720c410 100644 --- a/charts/karpenter/values.yaml +++ b/charts/karpenter/values.yaml @@ -59,6 +59,8 @@ terminationGracePeriodSeconds: # -- Bind the pod to the host network. # This is required when using a custom CNI. hostNetwork: false +# -- Specify which Kubernetes scheduler should dispatch the pod. +schedulerName: default-scheduler # -- Configure the DNS Policy for the pod dnsPolicy: ClusterFirst # -- Configure DNS Config for the pod @@ -183,6 +185,6 @@ settings: # -- spotToSpotConsolidation is ALPHA and is disabled by default. # Setting this to true will enable spot replacement consolidation for both single and multi-node consolidation. spotToSpotConsolidation: false - # -- nodeRepair is ALPHA and is disabled by default. + # -- nodeRepair is ALPHA and is disabled by default. # Setting this to true will enable node repair. nodeRepair: false