Customers building 'Golden Image' Amazon Machine Images via EC2 Image Builder can extend their Image Builder pipelines to build out their Amazon EKS worker nodes as well.
The custom EKS build process incorporates the latest Kubernetes binary patches & ensures that worker nodes always have the latest EC2 image builds.
The post explains the process of building EKS worker node through organization's golden image pipeline & using Image Builder to run pipelines on a recurring schedule.
An EC2 Instance Profile with necessary permissions needs to be created before beginning the Image Builder process.
Image Builder Cascading Pipelines concept is used to build an EKS worker node from organization's golden image pipeline; AWS CloudFormation templates are provided.
A new Image Builder Component is created to clone a public AWS GitHub repository for building custom EKS worker nodes and including necessary Linux commands.
A new Image Builder Recipe is created to execute the component & have the AWS CLI installed, along with any test components.
A new Image Builder Pipeline is created to build EKS worker node images on a schedule, by selecting the existing recipe created in previous section.
Example CloudFormation templates & the process of EKS worker node deployment have also been explained.
Using CloudFormation to build these Image Builder constructs is the recommended approach.