Not everything’s commented out, my bad, but there’...
# k3s
h
Not everything’s commented out, my bad, but there’s no reference to max file size for the pod logs
c
because that’s managed by the kubelet, not containerd
https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/
Copy code
--container-log-max-files int32     Default: 5
Set the maximum number of container log files that can be present for a container. The number must be >= 2. 
--container-log-max-size string     Default: 10Mi
Set the maximum size (e.g. 10Mi) of container log file before it is rotated.
why are you looking for that in the containerd config?
h
I just wanted to know where my k3s nodes are storing the log files for my running pods that run my containers….. and so I lf I don’t set these flags… do they use the default that’s listed ??? Because I just looked in /var/log/pods and I can see my containers, but 1 of my containers log file is 39M large….. so is there no cap or setting to this?
@creamy-pencil-82913
Like if I don’t explicitly set the flag on my install, can the container log files sizes just be unlimited… or if I don’t set the flag it’ll use the default value… but then why is my container log file 39M