Modification of log rotation of CRI-O in Openshift 4.

Solution In Progress - 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 file?
  • How to change the default unlimited container log file size?
  • How to set log_size_max for CRI-O in OpenShift 4?

Environment

  • Openshift Container Platform 4.x [OCP]

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