Modification of log rotation of CRI-O in Openshift 4

Solution Verified - Updated -

Issue

  • How to set up log rotation of pods under CRI-O.
  • The kubelet is in charge of doing the log rotation, which is actually overriding whatever value the crio.conf file has.
  • How to specify the maximum size allowed for container log files?
  • How to change the default unlimited container log file size?
  • How to set log_size_max for CRI-O in OpenShift 4?

Environment

  • Red Hat OpenShift Container Platform 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