-
Hi, I am setting up a EKS cluster with terraform and using an EKS manged node group eks_managed_node_groups = {
initial = {
instance_types = ["m6i.large"]
ami_type = "BOTTLEROCKET_x86_64"
platform = "bottlerocket"
# release_version = "something here?"
create_security_group = false
min_size = 2
max_size = 3
desired_size = 2
} And if it is |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
Hi @Raboo! Although we always recommend running the latest Bottlerocket release, I think the key you're looking for is |
Beta Was this translation helpful? Give feedback.
-
So if i'm specifying for example '1.35.0-af533f46' as my ami release version at what point is that resolved against the kubernetes version to find the right ami. Because the same ami release version is valid for 1.31 and 1.32 but they both resolve to different AMIs. So with the cluster on 1.31 it uses bottlerocket-aws-k8s-1.31-x86_64-v1.35.0-af533f46 In my testing when I perform an EKS version upgrade the nodes do not move to the new AMI bottlerocket-aws-k8s-1.32-x86_64-v1.35.0-af533f46 This isn't a big problem as I can just spin up a new nodegroup and that will get the new AMI, but is there a way to explicitly pin to the variant so it's clear from the definition which is expected. |
Beta Was this translation helpful? Give feedback.
I believe this maps to the SSM parameters which have several different versions under the hood. You should be able to use
ami_release_version = 1.18.0-7452c37e
orami_release_version = 1.18.0
since the specific variant (k8s 1.25 vs another one) is tied to your cluster version. To find this version, you can use Bottlerocket's SSM parameters (https://docs.aws.amazon.com/eks/latest/userguide/retrieve-ami-id-bottlerocket.html) by calling the path/aws/service/bottlerocket/aws-k8s-1.25/x86_64/latest/image_version
if you want to find it explicitly.