This message was deleted.
# general
a
This message was deleted.
s
Just bumping this
c
One of the containers using that image is writing logs into the image filesystem. These are changes are ephemeral, and will be discarded when the pod goes away, but still consume space. You should mount a tempfs volume for the application logs and/or implement log rotation at the application level.
Kubernetes doesn’t solve the problem of application logging for you. If it creates a bunch of files on disk, that is still something you need to address.
s
Thanks I will check with our Devs. In the meantime, even if I delete the pod (assume deployment has 3 pods min) one by one & it creates a new pod the logs will still consume space. Right? So I am thinking i will just echo "" > access.log as a dirty fix.
c
no, the files should go away when you delete the pods. any changes made to the overlayfs are discarded when the container terminates.
you might look at setting
readOnlyRootFilesystem: true
in your pod security context to prevent writing to the filesystem in places that aren’t explicitly mounted with a tempfs volume
👀 1
s
Ok...so if log files go away upon pod deletion, that would free up space I guess