Hi mspreitz,
I think the reason is that `kubectl logs` does not support log rotation. It will only read the most recent log file.
Docker log rotation is is handled by docker itself today. Kubernetes supports multiple container runtimes (docker, cri-containerd, cri-o etc.), so we can't assume that all container logs are rotated in the docker way.
With this we should be able to make `kubectl logs` support log rotation, because kubelet is doing logrotation, and we know exactly how the container logs are rotated, and how to read them. Here is an open source issue for this
https://github.com/kubernetes/kubernetes/issues/59902
Does this make sense to you? Any help and suggestions are welcomed.
Best Regards,
Lantao