如何制作要在 EKS 中使用的自定义基础 AMI

How to make an custom base AMI to be used in EKS

我有这张图片: https://aws.amazon.com/marketplace/pp/B07Y43P7X5?ref=cns_1clkPro 我想将 nvidia 驱动程序用于机器学习目的。

如何在 1.15 版本的 eks 集群 运行 的工作节点中使用此映像。

在这种情况下,用户数据是什么。

由于该映像没有安装必要的 kubernetes 二进制文件,您可能需要从该映像创建自定义 AMI。看看how to create a custom AMI for EKS

lunching EKS worker nodes有自管节点选项,指定NodeImageId

NodeImageId: (Optional) If you are using your own custom AMI (instead of the Amazon EKS-optimized AMI), enter a worker node AMI ID for your Region. If you specify a value here, it overrides any values in the NodeImageIdSSMParam field.

为此,我们可以使用经 Amazon EKS 优化的加速 AMI。

Amazon EKS 优化加速 AMI 建立在标准 Amazon EKS 优化 Linux AMI 之上,并配置为用作 Amazon EKS 工作节点的可选映像以支持基于 GPU 和 Inferentia 的工作量。

除了标准的 Amazon EKS 优化 AMI 配置外,加速 AMI 还包括以下内容:

NVIDIA drivers

The nvidia-container-runtime (as the default runtime)

AWS Neuron container runtime

最新的 Amazon EKS 优化加速 AMI 的 AMI ID 如下所示 table。您还可以使用不同的工具通过 AWS Systems Manager 参数检索 ID。有关更多信息,请参阅检索 Amazon EKS 优化的 AMI ID。

https://docs.aws.amazon.com/eks/latest/userguide/gpu-ami.html