How do I view the log of a previous failure for an OpenShift Job?

9/25/2019

I have a Job that runs daily with its container having a restartPolicy of onFailure. It failed once, then ran again about 40 mins later. We need to know the reason for the failure, but oc logs only brings up the log of the successful run.

Is there a way to bring up the log for the previous failed run?

-- CJ Virtucio
kubernetes
openshift

0 Answers