Images

As of Kubernetes 1.27 the default images used by kOps are the official Ubuntu 22.04 images.

You can choose a different image for an instance group by editing it with kops edit ig nodes.

For AWS, you should set the image field in one of the following formats:

  • ami-abcdef - specifies an image by id directly (image id is precise, but ids vary by region)
  • <owner>/<name> specifies an image by its owner’s account ID and name properties
  • <alias>/<name> specifies an image by its owner’s alias and name properties
  • ssm:<ssm_parameter> specifies an image through an SSM parameter (kOps 1.25.3+)
  1. image: ami-00579fbb15b954340
  2. image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20200423
  3. image: ubuntu/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20200423
  4. image: ssm:/aws/service/canonical/ubuntu/server/20.04/stable/current/amd64/hvm/ebs-gp2/ami-id

Security Updates

Automated security updates are handled by kOps for Debian, Flatcar and Ubuntu distros. This can be disabled by editing the cluster configuration:

  1. spec:
  2. updatePolicy: external

Distros Support Matrix

The following table provides the support status for various distros with regards to kOps version:

DistroExperimentalStableDeprecatedRemoved
Amazon Linux 21.101.18--
Amazon Linux 20231.27---
CentOS 7-1.51.211.23
CentOS 81.15-1.211.23
CoreOS1.61.91.171.18
Debian 8-1.51.171.18
Debian 91.81.101.211.23
Debian 101.131.17--
Debian 111.21.1---
Debian 121.26.3---
Flatcar1.15.11.17--
Kope.io--1.181.23
RHEL 7-1.51.211.23
RHEL 81.151.18--
RHEL 91.27---
Rocky 81.23.21.24--
Ubuntu 16.041.51.101.171.20
Ubuntu 18.041.101.161.261.28
Ubuntu 20.041.16.21.18--
Ubuntu 22.041.231.24--
Ubuntu 24.041.29---

Supported Distros

Amazon Linux 2

Amazon Linux 2 has variants using Kernel versions 4.14 and 5.10. Be sure to use the 5.10 images as specified in the image filter below. More information is available in the AWS Documentation.

For kOps versions 1.16 and 1.17, the only supported Docker version is 18.06.3. Newer versions of Docker cannot be installed due to missing dependencies for container-selinux. This issue is fixed in kOps 1.18.

Available images can be listed using:

  1. aws ec2 describe-images --region us-east-1 --output table \
  2. --filters "Name=owner-alias,Values=amazon" \
  3. --query "sort_by(Images, &CreationDate)[*].[CreationDate,Name,ImageId]" \
  4. --filters "Name=name,Values=amzn2-ami-kernel-5.10-hvm-2*-*-gp2"

Amazon Linux 2023

Amazon Linux 2023 uses Kernel version 6.1. More information is available in the AWS Documentation. Only the standard AMI is supported, the minimal AMI is not supported.

Available images can be listed using:

  1. aws ec2 describe-images --region us-east-1 --output table \
  2. --filters "Name=owner-alias,Values=amazon" \
  3. --query "sort_by(Images, &CreationDate)[*].[CreationDate,Name,ImageId]" \
  4. --filters "Name=name,Values=al2023-ami-2*-kernel-6.1-*"

Debian 10 (Buster)

Debian 10 is based on Kernel version 4.19 which fixes some of the bugs present in Debian 9 and effects are less visible.

One notable change is the addition of iptables NFT, which is by default. This is not yet supported by most CNI plugins and seems to be slower than the legacy version. It is recommended to switch to iptables legacy by using the following script in additionalUserData for each instance group:

  1. additionalUserData:
  2. - name: busterfix.sh
  3. type: text/x-shellscript
  4. content: |
  5. #!/bin/sh
  6. update-alternatives --set iptables /usr/sbin/iptables-legacy
  7. update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
  8. update-alternatives --set arptables /usr/sbin/arptables-legacy
  9. update-alternatives --set ebtables /usr/sbin/ebtables-legacy

Available images can be listed using:

  1. # Amazon Web Services (AWS)
  2. aws ec2 describe-images --region us-east-1 --output table \
  3. --owners 136693071363 \
  4. --query "sort_by(Images, &CreationDate)[*].[CreationDate,Name,ImageId]" \
  5. --filters "Name=name,Values=debian-10-*-*"
  6. # Google Cloud Platform (GCP)
  7. gcloud compute images list --filter debian-10-buster-v
  8. # Microsoft Azure
  9. az vm image list --all --output table \
  10. --publisher Debian --offer debian-10 --sku 10-gen2

Debian 11 (Bullseye)

Debian 11 is based on Kernel version 5.10 which has no known major Kernel bugs and fully supports all Cilium features.

Available images can be listed using:

  1. # Amazon Web Services (AWS)
  2. aws ec2 describe-images --region us-east-1 --output table \
  3. --owners 136693071363 \
  4. --query "sort_by(Images, &CreationDate)[*].[CreationDate,Name,ImageId]" \
  5. --filters "Name=name,Values=debian-11-*-*"
  6. # Google Cloud Platform (GCP)
  7. gcloud compute images list --filter debian-11-bullseye-v
  8. # Microsoft Azure
  9. az vm image list --all --output table \
  10. --publisher Debian --offer debian-11 --sku 11-gen2

Debian 12 (Bookworm)

Debian 12 is based on Kernel version 6.1 which has no known major Kernel bugs and fully supports all Cilium features.

At the moment there is no official image published.

Flatcar

Flatcar is a friendly fork of CoreOS and as such, compatible with it.

Available images can be listed using:

  1. aws ec2 describe-images --region us-east-1 --output table \
  2. --owners 075585003325 \
  3. --query "sort_by(Images, &CreationDate)[*].[CreationDate,Name,ImageId]" \
  4. --filters "Name=name,Values=Flatcar-stable-*-hvm"

RHEL 8

RHEL 8 is based on Kernel version 4.18 which fixes some of the bugs present in RHEL/CentOS 7 and effects are less visible.

One notable change is the addition of iptables NFT, which is the only iptables backend available. This may not be supported by some CNI plugins and should be used with care.

Available images can be listed using:

  1. aws ec2 describe-images --region us-east-1 --output table \
  2. --owners 309956199498 \
  3. --query "sort_by(Images, &CreationDate)[*].[CreationDate,Name,ImageId]" \
  4. --filters "Name=name,Values=RHEL-8.*"

RHEL 9

RHEL 9 is based on Kernel version 5.15 which fixes all the known major Kernel bugs.

Available images can be listed using:

  1. aws ec2 describe-images --region us-east-1 --output table \
  2. --owners 309956199498 \
  3. --query "sort_by(Images, &CreationDate)[*].[CreationDate,Name,ImageId]" \
  4. --filters "Name=name,Values=RHEL-9.*"

Rocky 8

Rocky Linux is a community enterprise Operating System designed to be 100% bug-for-bug compatible with RHEL 8.

Available images can be listed using:

  1. aws ec2 describe-images --region us-east-1 --output table \
  2. --owners 792107900819 \
  3. --query "sort_by(Images, &CreationDate)[*].[CreationDate,Name,ImageId]" \
  4. --filters "Name=name,Values=Rocky-8-ec2-8.*.*"

Ubuntu 20.04 (Focal)

Ubuntu 20.04 is based on Kernel version 5.4 which fixes all the known major Kernel bugs.

Available images can be listed using:

  1. # Amazon Web Services (AWS)
  2. aws ec2 describe-images --region us-east-1 --output table \
  3. --owners 099720109477 \
  4. --query "sort_by(Images, &CreationDate)[*].[CreationDate,Name,ImageId]" \
  5. --filters "Name=name,Values=ubuntu/images/hvm-ssd/ubuntu-focal-20.04-*-*"
  6. # Google Cloud Platform (GCP)
  7. gcloud compute images list --filter ubuntu-2004-focal-v
  8. # Microsoft Azure
  9. az vm image list --all --output table \
  10. --publisher Canonical --offer 0001-com-ubuntu-server-focal --sku 20_04-lts-gen2

Ubuntu 22.04 (Jammy)

Ubuntu 22.04 is based on Kernel version 5.15 which fixes all the known major Kernel bugs.

Available images can be listed using:

  1. # Amazon Web Services (AWS)
  2. aws ec2 describe-images --region us-east-1 --output table \
  3. --owners 099720109477 \
  4. --query "sort_by(Images, &CreationDate)[*].[CreationDate,Name,ImageId]" \
  5. --filters "Name=name,Values=ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-*-*"
  6. # Google Cloud Platform (GCP)
  7. gcloud compute images list --filter ubuntu-2204-jammy-v
  8. # Microsoft Azure
  9. az vm image list --all --output table \
  10. --publisher Canonical --offer 0001-com-ubuntu-server-jammy --sku 22_04-lts-gen2

Ubuntu 24.04 (Noble)

Support for Ubuntu 24.04 is experimental.

  1. # Amazon Web Services (AWS)
  2. aws ec2 describe-images --region us-east-1 --output table \
  3. --owners 099720109477 \
  4. --query "sort_by(Images, &CreationDate)[*].[CreationDate,Name,ImageId]" \
  5. --filters "Name=name,Values=ubuntu/images/hvm-ssd-gp3/ubuntu-jammy-22.04-*-*"

Owner aliases

kOps supports owner aliases for the official accounts of supported distros:

  • amazon => 137112412989
  • debian10 => 136693071363
  • debian11 => 136693071363
  • flatcar => 075585003325
  • redhat => 309956199498
  • ubuntu => 099720109477