book-of-kubernetes / examples

Examples for The Book of Kubernetes
MIT License
146 stars 71 forks source link

Update default aws_ubuntu_image #23

Closed zhouziqunzzq closed 6 months ago

zhouziqunzzq commented 1 year ago

The previously specified image "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20210223" has become unavailable (possibly due to auto timeout after 2 years). It might be better to just use a wildcard instead of a specific timestamped version for a more robust default setting.

EduardoBautista commented 1 year ago

@AlanHohn This resolves an issue where aws-setup.yaml fails, so it might be a good idea to merge this in so that the examples can be set up.

matthoff11 commented 1 year ago

Thank you for this!

seanluong commented 1 year ago

+1 for merging this PR. I ran into the same issue and it took me a while to figure the latest image is ubuntu/images/hvm-ssd/ubuntu-lunar-23.04-amd64-server-20230426.

CheriseCodes commented 1 year ago

Generally, the latest version of the image is listed on this website: https://aws.amazon.com/marketplace/pp/prodview-iftkyuwv2sjxi

So you can update line 9 in setup/roles/aws-instances/defaults/main.yaml to be:

aws_ubuntu_image: "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-LatestVersionNumber"

Today, I updated it to be:

aws_ubuntu_image: "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20230616"

AlanHohn commented 6 months ago

Thanks everyone; sorry for the delay on this.