Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support creating ubuntu 22.04 AMI for AWS #1244

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/aws-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ jobs:
buildConfig: "nvidia"
- os: "ubuntu 20.04"
buildConfig: "offline"
# Ubuntu 22.04
- os: "ubuntu 22.04"
buildConfig: "basic"
- os: "ubuntu 22.04"
buildConfig: "nvidia"
# Rocky 9.1
- os: "rocky 9.1"
buildConfig: "basic"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release-ami.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
buildConfig: "nvidia"
- os: "ubuntu 20.04"
buildConfig: "basic"
- os: "ubuntu 22.04"
buildConfig: "basic"
- os: "ubuntu 22.04"
buildConfig: "nvidia"
- os: "flatcar"
buildConfig: "basic"

Expand Down
17 changes: 17 additions & 0 deletions images/ami/ubuntu-2204.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
build_name: "ubuntu-22"
packer_builder_type: "amazon"
python_path: ""
# The latest cloud-init version is unable to run #boothook created by CAPA https://github.com/kubernetes-sigs/cluster-api-provider-aws/issues/5115
# This is a workaround to downgrade to older cloud-init version.
# https://github.com/kubernetes-sigs/image-builder/pull/1590/files
pinned_debs: ["cloud-init=23.1.2-0ubuntu0~22.04.1"]
dkoshkin marked this conversation as resolved.
Show resolved Hide resolved
packer:
ami_filter_name: "ubuntu/images/*ubuntu-jammy-22.04-amd64-server-*"
ami_filter_owners: "099720109477"
source_ami: ""
distribution: "Ubuntu"
distribution_version: "22.04"
ssh_username: "ubuntu"
root_device_name: "/dev/sda1"
volume_size: "15"
Loading