OpenShift health check not working with HTTPS scheme or mutual auth

Solution Verified - Updated -

Issue

Unable to successfully configure livenessProbe over HTTPS port. The setup uses mutual authentication. The documentation is not clear on how to configure this setup.

Sample livenessProbe snippet used in the deployment:

        livenessProbe:
          httpGet:
            path: /healthz
            port: 8443
            scheme: HTTPS
          initialDelaySeconds: 120
          timeoutSeconds: 5
          periodSeconds: 10
          successThreshold: 1
          failureThreshold: 3

Fails with the following message:

Liveness probe failed: Get https://10.129.1.103:8082/healthz: EOF 

then the pods go into a crash loop.

Environment

  • Red Hat 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