How to check the logs of failed Job's due to "BackoffLimitExceeded"?
Issue
- How to collect logs of the
Jobthat failed withBackoffLimitExceeded? - How to find the reason if the
Jobis failing withBackoffLimitExceeded? - The expectation is that RHOCP should keep the last failed pod if the job reaches the BackoffLimit.
- The failed pods are being cleared because the
restartPolicyis set toOnFailure, which prevents users from accessing the logs or identifying the cause of failure. Is it possible to investigate the reasons for job failure?
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
- 3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.