I have pods running in OpenShift that I would like to view the logs for. In particular, I want to see the logs when the pod is terminated.
However, when the pod is terminated the logs are deleted as far as I can tell. I've tried tailing 'oc logs ' but I lose the output once the pod is gone.
What is a clean way to copy these logs in real time or print them to stdout so that they will persist after the pod is killed?