Configuring the automatic image cleanup of the container storage disk¶
Configure when the Lifecycle Agent cleans up unpinned images in the Prep stage by setting a minimum threshold for available storage space through annotations. The default container storage disk usage threshold is 50%.
The Lifecycle Agent does not delete images that are pinned in CRI-O or are currently used. The Operator selects the images for deletion by starting with dangling images and then sorting the images from oldest to newest that is determined by the image Created timestamp.
Configuring the automatic image cleanup of the container storage disk¶
Configure the minimum threshold for available storage space through annotations.
Prerequisites
- You have created an
ImageBasedUpgradeCR.
Procedure
-
Increase the threshold to 65% by running the following command:
-
(Optional) Remove the threshold override by running the following command:
Disable the automatic image cleanup of the container storage disk¶
Disable the automatic image cleanup threshold.
Procedure
-
Disable the automatic image cleanup by running the following command:
-
(Optional) Enable automatic image cleanup again by running the following command: