How to prevent Kubelet's garbage collection from removing pinned images?
Issue
- After loading multiple images using
podmanon a Red Hat Device Edge node with Microshift, a "debug" or troubleshooting image, which is intended to be preserved, is automatically removed from thecrioimage cache. This debug image is subsequently not listed when checking images with eithercrictl imagesorpodman 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.