Enable Automatic Image Pruning in OpenShift Container Platform 4

Solution Verified - Updated -

Issue

  • An alert fires with the following error message, usually after upgrading to OpenShift 4.4:

"Automatic image pruning is not enabled. Regular pruning of images no longer referenced by ImageStreams is strongly recommended to ensure your cluster remains healthy. To remove this warning, install the image pruner by creating an imagepruner.imageregistry.operator.openshift.io resource with the name cluster. Ensure that the suspend field is set to false."

  • The API object is documented here.

Environment

  • OpenShift Container Platform 4.4

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