oc logs -p => how to enable storage of previous logs?

4/19/2018

In a OpenShift cluster, while debugging a frequently restarting pod, I get this behaviour:

> oc logs -p mystuff
Error from server (BadRequest): previous terminated container "mystuff" in pod "mystuff-1" not found

What do I have to do to tell OpenShift/Kubernetes to store the previous logs?

-- AnoE
kubernetes
logging
openshift

0 Answers