Pod with application deployed in OCP 4 goes on crashloop after completing task

Solution Verified - Updated -

Issue

Pod with application deployed in OCP 4 goes on crashloop after completing task - below the example of application.

public class app {
    public static void main(String[] args) throws InterruptedException{
        System.out.println("Hello Java World!");
        }
}

Environment

  • Red Hat Enterprise Linux (RHEL)
    • UBI 8
  • OpenJDK 8, 11, 17
  • Red hat OpenShift Container Platform (OCP)
    • 4.x

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