How to prevent Kubelet's garbage collection from removing pinned images?

Solution Verified - Updated -

Issue

  • After loading multiple images using podman on a Red Hat Device Edge node with Microshift, a "debug" or troubleshooting image, which is intended to be preserved, is automatically removed from the crio image cache. This debug image is subsequently not listed when checking images with either crictl images or podman images. This behavior is reproducible repeatedly.
    • The issue occurs on a system where the container storage (/var/) is mounted on the /sysroot file system, which experiences high disk utilization > 85%.
    • The automatic removal of these images prevents troubleshooting efforts at customer sites, impacting business operations.

Environment

  • Red Hat Device Edge 4
  • Red Hat Enterprise Linux 9
  • Red Hat Build of MicroShift

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content