Skip to content

Commit

Permalink
update ec2nodeClass
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Aug 19, 2024
1 parent d76f3ea commit 2e83849
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion ec2_node_class.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,38 @@ kind: EC2NodeClass
metadata:
name: ${cluster_name}-karpenter-node-class
spec:
kubelet:
podsPerCore: 2
maxPods: 20
systemReserved:
cpu: 100m
memory: 100Mi
ephemeral-storage: 1Gi
kubeReserved:
cpu: 200m
memory: 100Mi
ephemeral-storage: 3Gi
evictionHard:
memory.available: 5%
nodefs.available: 10%
nodefs.inodesFree: 10%
evictionSoft:
memory.available: 500Mi
nodefs.available: 15%
nodefs.inodesFree: 15%
evictionSoftGracePeriod:
memory.available: 1m
nodefs.available: 1m30s
nodefs.inodesFree: 2m
evictionMaxPodGracePeriod: 60
imageGCHighThresholdPercent: 85
imageGCLowThresholdPercent: 80
cpuCFSQuota: true

# Required, resolves a default ami and userdata
amiFamily: ${amd_ami_family}

amiSelectorTerms:
- alias: bottlerocket@latest
# Required, discovers subnets to attach to instances
# Each term in the array of subnetSelectorTerms is ORed together
# Within a single term, all conditions are ANDed
Expand Down

0 comments on commit 2e83849

Please sign in to comment.