Added
A pod in the `catalog` project repeatedly restarts after its image was changed. The deployment is healthy at the API level, but the application team reports that the new container exits immediately. The administrator needs evidence from the failed container instance before changing the manifest. The pod still exists and has a previous terminated container state. Which command is the best next step to inspect the output from that prior instance?
`oc logs --previous` retrieves logs from the prior terminated container in the pod, which is the evidence needed before changing the deployment. Describing the Deployment reports controller and rollout details but not the terminated process output. Events can reveal scheduling and lifecycle causes, but they do not replace the prior container's application logs. `oc exec` targets a running container and cannot inspect a process that has already exited.