Skip to content

Commit

Permalink
Merge pull request #41 from lindarr915/main
Browse files Browse the repository at this point in the history
feat: Add blockDeviceMappings fields to support multiple EBS volumes
  • Loading branch information
askulkarni2 authored Aug 18, 2024
2 parents d2c2b63 + a235746 commit 9dc6d06
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
10 changes: 4 additions & 6 deletions helm-charts/karpenter-resources/templates/node-class.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,11 @@ spec:
httpProtocolIPv6: {{ .Values.ec2NodeClass.metadataOptions.httpProtocolIPv6 }}
httpPutResponseHopLimit: {{ .Values.ec2NodeClass.metadataOptions.httpPutResponseHopLimit }}
httpTokens: {{ .Values.ec2NodeClass.metadataOptions.httpTokens }}
{{- with .Values.ec2NodeClass.blockDeviceMappings }}
blockDeviceMappings:
- deviceName: {{ default "/dev/xvda" .Values.ec2NodeClass.blockDevice.deviceName }}
ebs:
volumeSize: {{ .Values.ec2NodeClass.blockDevice.volumeSize }}
volumeType: {{ .Values.ec2NodeClass.blockDevice.volumeType }}
encrypted: {{ .Values.ec2NodeClass.blockDevice.encrypted }}
deleteOnTermination: {{ .Values.ec2NodeClass.blockDevice.deleteOnTermination }}
{{- toYaml . | nindent 4 }}
{{- end }}

detailedMonitoring: {{ .Values.ec2NodeClass.detailedMonitoring }}
{{- if .Values.ec2NodeClass.instanceStorePolicy }}
instanceStorePolicy: {{ .Values.ec2NodeClass.instanceStorePolicy }}
Expand Down
14 changes: 7 additions & 7 deletions helm-charts/karpenter-resources/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ ec2NodeClass:
httpProtocolIPv6: disabled
httpPutResponseHopLimit: 2
httpTokens: required
blockDevice:
deviceName: /dev/xvda
volumeSize: 100Gi
volumeType: gp3
encrypted: true
deleteOnTermination: true
blockDeviceMappings:
- deviceName: /dev/xvda
ebs:
volumeSize: 100Gi
volumeType: gp3
encrypted: true
deleteOnTermination: true
detailedMonitoring: true
userData:
instanceStorePolicy:

# NodePool specific values
nodePool:
enabled: true
Expand Down

0 comments on commit 9dc6d06

Please sign in to comment.