Removal of Docker Runtime from Amazon Elastic Kubernetes Service
1 min readAug 30, 2022
- The most recent version of Amazon EKS is v1.23.
a.It has a default option for switching between docker runtime to containerd.
b. Same is applicable for Kubernetes v1.21 - For EKS, v1.24 (to be released)
a. Runtime is set to containerd only
b. Runtime Docker removed
ARE YOU SCREWED ???
1. For Bottlerocket AMI, containerd is the container runtime
2. For Fargate, containerd is the container runtime
3. All your container images created by dockerfile will run seamlessly
a. Dockerfile has NO DEPENDENCY on docker runtime
b. OCI (Open Container Initative) complaint
c. Existing containers will run fine
WHAT SHOULD YOU DO NEXT ?
- You need to change only if
Using DnD (Not recommended for security reasons)
Using Docker sockets - Regardless, you should switch to containerd in v1.23 and test out
You have 1 year to switch to v1.24 - No Docker commands
Switch to equivalent kubectl commands
SWITCH TO CONTAINERD IN v1.21–1.23
- EKS Optimized Amazon Linux 2 contains a bootstrap flag
- Add a node group in your existing cluster with containerd to test OR create a new cluster
- Ways to switch
1. eksctl
2. launch template with userdata specifying runtime Has a Cavet!
3. terraform (using bootstrap_extra_args) - EKS Optimized AMI + userdata/bootstrap = Custom AMI