OpenShift health check not working with HTTPS scheme or mutual auth
Issue
-
Unable to successfully configure
livenessProbeover HTTPS port. The setup uses mutual authentication. The documentation is not clear on how to configure this setup. -
Sample
livenessProbesnippet 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.x.x.103:8082/healthz: EOF
- After this, pods go into a
CrashLoopBackOffstate.
Environment
- Red Hat OpenShift Container Platform
- 3.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.