How to check the logs of failed Job's due to "BackoffLimitExceeded"?

Solution Verified - Updated -

Issue

  • How to collect logs of the Job that failed with BackoffLimitExceeded?
  • How to find the reason if the Job is failing with BackoffLimitExceeded?
  • 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 restartPolicy is set to OnFailure, 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content