Cronjob with sidecar logging container no exit code

7/11/2021

Cronjob needs exit code to make the job successful or failed but with sidecar container an example the log container keep running and there is no exit code, even the job of the main container might run successfully the final state remain failed. There is any way to mitigate that issue ?! Thanks

-- Hamid Zorgani
kubernetes
kubernetes-cronjob
sidecar

1 Answer

7/15/2021

Having analyzed the comments it looks like it's a know issue and the fix can be found in this thread.

-- Jakub Siemaszko
Source: StackOverflow