containerd pause container image was delete during operation on EKS

Bug #1968830 reported by DingGGu
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Tomáš Virtus

Bug Description

Since Ubuntu EKS 1.22 AMI, containerd has become the default container runtime.

When the node receives DiskPressure, kubelet gc the unused image. I faced pause container image has been removed during operation. After the pause container is deleted, the node can no longer create pods. (related with containerd does not support ecr native image pull)

kubelet has a pod-infra-container-image flag, which prevents gc to a pause container image.

Edit the file so that the pod-infra-container-image flag is set in all container runtimes.

I am using by modifying it.

mv /etc/eks/ /etc/eks/
sed "s,container-runtime-endpoint=unix:///run/containerd/containerd.sock,container-runtime-endpoint=unix:///run/containerd/containerd.sock pod-infra-container-image=" \$PAUSE_CONTAINER",g" < /etc/eks/ > /etc/eks/
chmod +x /etc/eks/

DingGGu (dinggggu)
description: updated
Changed in cloud-images:
assignee: nobody → Tomáš Virtus (virtustom)
Changed in cloud-images:
status: New → In Progress
Changed in cloud-images:
importance: Undecided → Critical
Changed in cloud-images:
status: In Progress → Fix Committed
Changed in cloud-images:
status: Fix Committed → Fix Released
Revision history for this message
Tomáš Virtus (virtustom) wrote :

New AMIs were released yesterday with serial 20220419.1. Pause container is now configured via --pod-infra-container-image kubelet option for both dockershim and containerd container runtimes. Can you please try it?

Revision history for this message
DingGGu (dinggggu) wrote (last edit ):

I confirm that flag was set correctly.

# snap get kubelet-eks
Key Value
container-runtime remote
container-runtime-endpoint unix:///run/containerd/containerd.sock

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.