How to change default pod log directory(/var/log/pods) in kubernetes cluster?

How to change default pod log directory(/var/log/pods) in kubernetes cluster ?

This appears to be hard coded and I see no way to override this

I would guess you could replace the path with a symlinks.

Should be like this, but don’t quote me on it. I get these backwards all the time.

$ ln -s /your/real/path /var/lib/pods

:rofl: well, I known this way.

¯\_(ツ)_/¯

Definitely not what I hoped to find the other day when I replied back.

However when you’re in Linux and run into this exact problem.