I'm running the following EKS version:
kubelet --version
Kubernetes v1.22.12-eks-ba74326
I've set the following parameter as documented here.
"containerLogMaxSize": "100 Mi"
I then restarted the kubelet:
systemctl daemon-reload
systemctl restart kubelet
But my logs are still rotating at 10 MB.
Any ideas for how to debug or fix this?
journalctl -u kubelet
to see if it whined on startup?FLAG: --container-log-max-size="10Mi"
, so the option is certainly being ignored or overridden somehow. I also tried removing the space between the number and the unit, but that did not do anything different.systemctl cat kubelet.service
and chase all the files and environment mentioned. You may have some luck withgrep -r container-log-max /etc
but that may not be the whole story since systemd is a complicated thing