Build a custom Amazon Linux AMI with a script
Amazon Elastic Kubernetes Service (Amazon EKS) has open-source scripts that are used to build the Amazon EKS optimized AMI. These build scripts are available on GitHub
The Amazon EKS optimized Amazon Linux AMIs are built on top of Amazon Linux 2 (AL2) and Amazon Linux 2023 (AL2023), specifically for use as a node in Amazon EKS clusters. You can use this repository to view the specifics of how the Amazon EKS team configures kubelet
, the runtime, the Amazon IAM Authenticator for Kubernetes, and build your own Amazon Linux based AMI from scratch.
The build scripts repository includes a HashiCorp packer
The GitHub repository also contains the specialized bootstrap script
Additionally, the GitHub repository contains our Amazon EKS node Amazon CloudFormation templates. These templates make it easier to spin up an instance running an Amazon EKS optimized AMI and register it with a cluster.
For more information, see the repositories on GitHub at https://github.com/awslabs/amazon-eks-ami
Amazon EKS optimized AL2 contains an optional bootstrap flag to enable the containerd
runtime.