Keep kubernetes logs of quicky terminating pods

12/1/2021

I have an app in my cluster that starts automatically based on a metric and shuts down as soon as its job is down. Apparently the shutdown is to fast because my logging agents (DataDog agent and FluentBit) are not able to pick up the logs before the log file is deleted.

Is there a kubernetes deployment config that ensures the log stays around for a longer time period like and extra minute or so?

I'm using the CRI logging driver

Thanks in advance!

-- Jimmy Foobar
kubernetes

0 Answers