Skip to content

Commit 340ef8e

Browse files
committed
updated karpenter.yaml
1 parent 8f195ee commit 340ef8e

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

karpenter.yaml

+12-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,17 @@ spec:
5353
values:
5454
- spot
5555
- on-demand
56+
limits:
57+
resources:
58+
cpu: 1000 # optional, recommended to limit total provisioned CPUs
59+
memory: 1000Gi
5660
provider:
5761
instanceProfile: KarpenterNodeInstanceProfile-eks-karpenter-demo
58-
# terminate empty nodes after this many seconds of being idle
59-
ttlSecondsAfterEmpty: 30
62+
# Terminate empty nodes after this many seconds of being idle
63+
ttlSecondsAfterEmpty: 30 # optional, but never scales down if not set
64+
# Terminate nodes after 2592000 seconds (30 days)
65+
# Karpenter doesn't automatically add jitter to this value
66+
# If you create multiple instances in a short amount of time,
67+
# then the instances will expire around the same time
68+
# To prevent workload disruption, define a Pod Disruption Budget
69+
ttlSecondsUntilExpired: 2592000 # optional, set nodes to be reaped & replaced after 30 days, if not set are never reaped

0 commit comments

Comments
 (0)