File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 11apiVersion : karpenter.k8s.aws/v1alpha1
22kind : AWSNodeTemplate
33metadata :
4- name : ${KARPENTER_NODECLASS_NAME}
4+ name : ${KARPENTER_NODECLASS_NAME} # e.g., solar-nodeclass
55spec :
66 subnetSelector :
77 karpenter.sh/discovery : ${CLUSTER_NAME}
88 securityGroupSelector :
99 karpenter.sh/discovery : ${CLUSTER_NAME}
1010 amiFamily : AL2
11- instanceProfile : ${KARPENTER_INSTANCE_PROFILE}
11+ instanceProfile : ${KARPENTER_INSTANCE_PROFILE} # e.g., KarpenterNodeInstanceProfile
1212---
1313apiVersion : karpenter.sh/v1alpha5
1414kind : Provisioner
1515metadata :
16- name : ${KARPENTER_NODEPOOL_NAME}
16+ name : ${KARPENTER_NODEPOOL_NAME} # e.g., solar-nodepool
1717spec :
1818 requirements :
19- - key : " karpenter.sh/instance-type"
19+ # Allow t2 or t3 instances
20+ - key : " karpenter.k8s.aws/instance-family"
2021 operator : In
21- values : ["t3.medium"] # force t3.medium nodes
22+ values : ["t2", "t3"]
23+ # Allow multiple sizes
24+ - key : " karpenter.k8s.aws/instance-size"
25+ operator : In
26+ values : ["small", "medium", "large"]
2227 - key : " karpenter.sh/capacity-type"
2328 operator : In
2429 values : ["spot", "on-demand"]
You can’t perform that action at this time.
0 commit comments