Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions charts/karpenter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,17 @@ spec:
containerName: {{ include "karpenter.controller.containerName" . }}
divisor: 1m
resource: requests.cpu
{{- if .Values.controller.memoryLimit }}
- name: MEMORY_LIMIT
value: {{ .Values.controller.memoryLimit | quote }}
{{- else }}
- name: MEMORY_LIMIT
valueFrom:
resourceFieldRef:
containerName: {{ include "karpenter.controller.containerName" . }}
divisor: "0"
resource: limits.memory
{{- end }}
- name: FEATURE_GATES
value: "ReservedCapacity={{ .Values.settings.featureGates.reservedCapacity }},SpotToSpotConsolidation={{ .Values.settings.featureGates.spotToSpotConsolidation }},NodeRepair={{ .Values.settings.featureGates.nodeRepair }},NodeOverlay={{ .Values.settings.featureGates.nodeOverlay }},StaticCapacity={{ .Values.settings.featureGates.staticCapacity }}"
{{- with .Values.settings.batchMaxDuration }}
Expand Down
10 changes: 10 additions & 0 deletions charts/karpenter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,16 @@ controller:
# limits:
# cpu: 1
# memory: 1Gi
# -- Override the MEMORY_LIMIT env var (in bytes). GOMEMLIMIT is set to 90% of this value.
# Must be a plain integer representing bytes. Common values:
# 512Mi = 536870912
# 1Gi = 1073741824
# 2Gi = 2147483648
# 4Gi = 4294967296
# Set to "" (default) to use the container's limits.memory automatically.
# Set to "-1" to disable GOMEMLIMIT entirely.
memoryLimit: ""

# -- Additional volumeMounts for the controller container.
extraVolumeMounts: []
# - name: aws-iam-token
Expand Down