Skip to content

Commit 17a5ecb

Browse files
committed
Merge remote-tracking branch 'upstream/master' into mainline
2 parents bcd0040 + 9aeb375 commit 17a5ecb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

latest/bpg/autoscaling/karpenter.adoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,19 @@ and pod scheduling.
6969

7070
The following best practices cover topics related to Karpenter itself.
7171

72+
=== Lock down AMIs in production clusters
73+
74+
We strongly recommend that you pin well-known Amazon Machine Images (AMIs) used by Karpenter for production clusters.
75+
Using `amiSelector` with an alias set to `@latest`, or using some other method that results in deploying untested AMIs as they are released, offers the risk of workload failures and downtime in your production clusters. As a result, we strongly recommend pinning tested working versions of AMIs for your production clusters while you test newer versions in non-production clusters. For example, you could set an alias in your NodeClass as follows:
76+
77+
[source,yaml]
78+
----
79+
amiSelectorTerms
80+
- alias: al2023@v20240807
81+
----
82+
83+
For information on managing and pinning down AMIs in Karpenter, see https://karpenter.sh/docs/tasks/managing-amis/[Managing AMIs] in the Karpenter documentation.
84+
7285
=== Use Karpenter for workloads with changing capacity needs
7386

7487
Karpenter brings scaling management closer to Kubernetes native APIs

0 commit comments

Comments
 (0)