Skip to content

Commit b41767c

Browse files
authored
Merge pull request #8827 from zalando-incubator/karpenter-local-storage-raid0
Assume RAID0 for instances with local storage
2 parents 0c5132d + ab6ef23 commit b41767c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

cluster/config-defaults.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ karpenter_max_pods_per_node: "32"
4444
# legacy => 0.36.2-main-25.patched
4545
karpenter_version: "current"
4646

47+
# configure whether karpenter should assume instances with local storage use
48+
# RAID0 for ephemeral pod storage.
49+
# Our AMI configured RAID0 at boot.
50+
karpenter_instance_storage_raid0: "true"
51+
4752
# ALB config created by kube-aws-ingress-controller
4853
kube_aws_ingress_controller_ssl_policy: "ELBSecurityPolicy-TLS-1-2-2017-01"
4954
kube_aws_ingress_controller_idle_timeout: "1m"

cluster/node-pools/worker-karpenter/provisioners.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ spec:
3535
deleteOnTermination: {{ .NodePool.ConfigItems.ebs_root_volume_delete_on_termination }}
3636
volumeSize: {{ .NodePool.ConfigItems.ebs_root_volume_size }}Gi
3737
volumeType: gp3
38+
# {{ if eq .NodePool.ConfigItems.karpenter_instance_storage_raid0 "true" }}
39+
instanceStorePolicy: RAID0
40+
# {{ end }}
3841
# If you enable this option, the Amazon EC2 console displays monitoring graphs with a 1-minute period for the instances that Karpenter launches.
3942
detailedMonitoring: false
4043
tags:

0 commit comments

Comments
 (0)