Looking for install-worker script for Ubuntu EKS AMI

Bug #2046143 reported by Gyuho Lee
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-images
New
Undecided
Unassigned

Bug Description

We'd like to customize (e.g., Ubuntu 22.04 as a base image) EKS Ubuntu AMI, and would like to know how the official EKS Ubuntu AMIs are built. Is there any source code available for reference?

For instance, EKS Amazon Linux 2 is open-source: https://github.com/awslabs/amazon-eks-ami/blob/master/scripts/install-worker.sh. And I can see the Ubuntu EKS AMI also uses the same artifacts from the repository (e.g., max pod calculator).

Tags: eks
Revision history for this message
Thomas Bechtold (toabctl) wrote :

Hi Gyugo,

thanks for reporting this bug. The build pipelines and snippets to build the cloud images (including the EKS images) are not public.
You could use tools like packer (see eg. https://canonical-aws.readthedocs-hosted.com/en/latest/aws-how-to/instances/build-pro-ami-using-packer/ but that's for a Pro AMI) to make image modifications. I hope that helps.

Revision history for this message
Gyuho Lee (gyuhox) wrote :

I understand. Actually, tooling is the least concern for us. For some contexts, we're trying to debug some CoreDNS issue, when we translate the Amazon Linux script to Ubuntu (works fine when we use the official EKS Ubuntu AMI, but doesn't when we build from scratch using the basic Ubuntu 22.04 image). Was curious if the Ubuntu EKS AMI sets up anything special... :/

Please feel free to close this issue. We can create a separate bug report as we make more progress in CoreDNS issue in Ubuntu AMI.

Thank you.

Revision history for this message
Thomas Bechtold (toabctl) wrote :

@Gyuho, the big difference between the Amazon Linux EKS Ami and the Ubuntu EKS AMI is, that Ubuntu uses the snap versions for kubelet and kubectl.

I'm curious why you want to build your own image? Is it because we currently have only 20.04 based EKS images? If that's the reason, the Ubuntu EKS >= 1.29 images will be based on Jammy (22.04)

Revision history for this message
Gyuho Lee (gyuhox) wrote :

@toabctl, we are mostly happy with the default EKS Ubuntu AMI. But sometimes, we want to configure our own kubelet config or test custom patches, which is harder to do with "snap" based nodes. And there's a need for unifying our node infra across k8s providers (e.g., share some components between EKS nodes, GKE nodes with Ubuntu).

> If that's the reason, the Ubuntu EKS >= 1.29 images will be based on Jammy (22.04)

Great to know :)

Revision history for this message
Miles Monteleone (brosef) wrote :

@toabctl Are there plans to backport 22.04 to EKS >= 1.26?

Revision history for this message
Thomas Bechtold (toabctl) wrote :

@Miles,

no. we plan to to >= 1.29 on 22.04 (Jammy) but have no plans for backporting this currently.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.