Open
Description
Before creating an issue, make sure you've checked the following:
- You are running the latest released version of k0s
- Make sure you've searched for existing issues, both open and closed
- Make sure you've searched for PRs too, a fix might've been merged already
- You're looking at docs for the released version, "main" branch docs are usually ahead of released versions.
Platform
Rocky 9
Version
v1.27.4+k0s.0
Sysinfo
I'll follow this up if necessary. I can also upgrade the deployment to 1.27.5 if necessary later on.
What happened?
The k0s deployment has the data-directory configured to be /var/kubernetes, which is on a large partition. The root partition is fairly small. One of our nodes ran out of disk space with most of the usage being in /var/log/pods. I would have assumed that pod logs also go to a subfolder of the data-directory.
Steps to reproduce
- Deploy k0s with --data-dir pointing to /var/kubernetes.
- Deploy a pod, that produces tons of logs
- Watch the /var/log/pods folder grow in size
Expected behavior
Logs are inside of data dir
Actual behavior
Logs are in /var/log/pods
Screenshots and logs
No response
Additional context
No response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment