diff --git a/charts/karpenter/README.md b/charts/karpenter/README.md index 791fc20e8dd5..cf4235c0e44d 100644 --- a/charts/karpenter/README.md +++ b/charts/karpenter/README.md @@ -56,6 +56,7 @@ cosign verify public.ecr.aws/karpenter/karpenter:1.0.0 \ | controller.sidecarContainer | list | `[]` | Additional sidecarContainer config | | controller.sidecarVolumeMounts | list | `[]` | Additional volumeMounts for the sidecar - this will be added to the volume mounts on top of extraVolumeMounts | | dnsConfig | object | `{}` | Configure DNS Config for the pod | +| schedulerName | string | `""` | Override the default scheduler | | dnsPolicy | string | `"ClusterFirst"` | Configure the DNS Policy for the pod | | extraVolumes | list | `[]` | Additional volumes for the pod. | | fullnameOverride | string | `""` | Overrides the chart's computed fullname. | diff --git a/charts/karpenter/templates/deployment.yaml b/charts/karpenter/templates/deployment.yaml index 952976cab027..2e2463355f93 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 3b1b9962d6e6..8ff4b52b73cf 100644 --- a/charts/karpenter/values.yaml +++ b/charts/karpenter/values.yaml @@ -60,6 +60,8 @@ hostNetwork: false dnsPolicy: ClusterFirst # -- Configure DNS Config for the pod dnsConfig: {} +# -- Override the default scheduler +schedulerName: """ # options: # - name: ndots # value: "1"