bottlerocket-os / bottlerocket

An operating system designed for hosting containers
https://bottlerocket.dev
Other
8.78k stars 519 forks source link

Publish AMI IDs for K8s with Nvidia support via public SSM parameters, just like other AMIs #4046

Closed Nuru closed 5 months ago

Nuru commented 5 months ago

What I'd like:

Per the Quickstart-EKS:

The official AMI IDs are stored in public SSM parameters. The parameter names look like this: /aws/service/bottlerocket/aws-k8s-1.24/x86_64/latest/image_id

Just change the variant (aws-k8s-1.24) and architecture (x86_64) to the ones you want to use. Supported variants and architectures are described in the README. For the purposes of SSM parameters, the valid architecture names are x86_64 and arm64 (also known as aarch64). Also, if you know a specific Bottlerocket version you'd like to use, for example 1.11.0, you can replace latest with that version.

However, there are no public SSM parameters for the aws-k8s-*-nvidia variants.

Any alternatives you've considered:

I can find the AMI with the latest creation date, but that is not necessarily the one with the latest version, apparently due to build issues. But in any case, now I have to have a special case, a whole other method for finding BottleRocket AMIs with Nvidia support.

bcressey commented 5 months ago

There are nvidia parameters also. For example:


/aws/service/bottlerocket/aws-k8s-1.24-nvidia/x86_64/latest/image_id

They're available for k8s 1.23 through 1.30, x86_64 and arm64.

Nuru commented 5 months ago

@bcressey Thank you for that information. Please convert this issue to a documentation request, because I looked hard (I think for over an hour) to find the right parameter name but could not.

larvacea commented 5 months ago

Absolutely! You have demonstrated that we could be clearer here. I can sympathize.

larvacea commented 5 months ago

@nuru, as you can see I've opened a pull request #4047 to address this. I'd welcome any feedback: would this have helped you?