Skip to content

Commit

Permalink
feat: Allow the scheduler to be specified
Browse files Browse the repository at this point in the history
  • Loading branch information
stijndehaes committed Sep 20, 2024
1 parent f0dbb26 commit 7af038c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/karpenter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand Down
3 changes: 3 additions & 0 deletions charts/karpenter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ spec:
{{- if .Values.hostNetwork }}
hostNetwork: true
{{- end }}
{{- with .Values.schedulerName }}
schedulerName: {{ . | quote }}
{{- end }}
containers:
- name: controller
securityContext:
Expand Down
2 changes: 2 additions & 0 deletions charts/karpenter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7af038c

Please sign in to comment.