Troubleshoot HTTP readinessProbe in Openshift web applications

Solution Verified - Updated -

Issue

A web application has configured a HTTP readinessProbe like the following:

"readinessProbe": {
    "httpGet": {
        "path": "/healtz",
        "port": 8080,
        "scheme": "HTTP"
     },
     "initialDelaySeconds": 10,
     "timeoutSeconds": 1,
     "periodSeconds": 3,
     "successThreshold": 1,
     "failureThreshold": 3
},

After the given retries the application does not become ready. But the logs show the application started successfully and should be ready.

Environment

  • Openshift Container Platform 3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In