OpenShift health check not working with HTTPS scheme or mutual auth
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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
