diff --git a/helm-charts/karpenter-resources/templates/node-class.yaml b/helm-charts/karpenter-resources/templates/node-class.yaml index 6267989..eedcd77 100644 --- a/helm-charts/karpenter-resources/templates/node-class.yaml +++ b/helm-charts/karpenter-resources/templates/node-class.yaml @@ -49,6 +49,9 @@ spec: encrypted: {{ .Values.ec2NodeClass.blockDevice.encrypted }} deleteOnTermination: {{ .Values.ec2NodeClass.blockDevice.deleteOnTermination }} detailedMonitoring: {{ .Values.ec2NodeClass.detailedMonitoring }} + {{- if .Values.ec2NodeClass.instanceStorePolicy }} + instanceStorePolicy: {{ .Values.ec2NodeClass.instanceStorePolicy }} + {{- end }} {{- if .Values.ec2NodeClass.userData }} userData: | {{- .Values.ec2NodeClass.userData | nindent 4 }} diff --git a/helm-charts/karpenter-resources/values.yaml b/helm-charts/karpenter-resources/values.yaml index dc9f991..32e39eb 100644 --- a/helm-charts/karpenter-resources/values.yaml +++ b/helm-charts/karpenter-resources/values.yaml @@ -24,6 +24,7 @@ ec2NodeClass: deleteOnTermination: true detailedMonitoring: true userData: + instanceStorePolicy: # NodePool specific values nodePool: