To rotate audit logs upon reaching a maximum size,
edit the openshift-kube-apiserver
configmap
and set the audit-log-maxsize
parameter to
an appropriate size in MB. For example, to set it to 100 MB:
"apiServerArguments":{
...
"audit-log-maxsize": ["100"],
...