2.5 KiB
Updating The Default Base AMI
With the release of kOps 1.18, the base AMI was switched over from a pre-baked kOps AMI to the official Ubuntu 20.04 LTS image.
This makes the image update process easier, because kOps contributors no longer have to fully build and test a full AMI, but rather base off of the latest stable Ubuntu image.
In order to make sure we're up to date with the latest releases, we regularly follow the official Ubuntu EC2 AMI Locator website and update to the latest version of focal which is available across all AWS regions, including gov and cn, for full support.
The process of updating the AMI version is as following:
-
Find the most recent release on the official Ubuntu EC2 AMI Locator. Make sure it's available across all regions. The ones with the slowest release cycle are usually
gov,apandcnones, so the best option would usually be to take the most recent release from one of these regions. -
Replace the timestamp on this line in the
alphachannel, where theubuntuimage is referred. Example.!!!note Before updating
alphachannel, check and see ifalphaandstablechannel are both running the same AMI version. Ifstablecurrently runs a different version, and more than 7-10 days passed sincealphawas updated- it's safe to also push the version currently inalpha, tostablein the same PR. e.g., let's say that the most recent available on Ubuntu image locator is20201210,alphais currently using20201101andstableis currently using20201015. Ifalphawas updated at least 7-10 days prior to your desired change, you can updatestablewith the version that was listed inalphabefore your change. Then- you may updatealphawith the most recent version of Ubuntu.!!!note When updating the
stablechannel with a new ami version, there's a pretty good chance that this will cause some tests to fail. Thus, it's worth runninghack/update-expected.sh. This will update all the integration tests with the newly updated ami. To get ahead of this locally before pushing -make testwill confirm that everything is updated as should. -
Let the new AMI version bake-in in
alphachannel for at least 7-10 days, afterwhich it's safe to create a follow-up PR to push the latest version tostablechannel.