<p>I have configured liveness probe using httpGet but it's failing with <code>*error Client.Timeout exceeded while awaiting headers*</code></p>

<p>But the same API is working fine inside the container(using curl) and outside the container(postman). 
I have tried adding host attribute in liveness probe but no luck.</p>

<p>Any idea what's going wrong.</p>

<p>Liveness Probe:</p>

<pre><code> livenessProbe:
        initialDelaySeconds: 45
        periodSeconds: 10
        httpGet:
           path: /health
           port: xxxxx
        timeoutSeconds: 5
</code></pre>

<p><strong>Version details:</strong></p>

<pre><code>OpenShift Master-&gt;v3.9.0+ba7faec-1
Kubernetes Master-&gt;v1.9.1+a0ce1bc657
OpenShift Web Console-&gt;v3.9.0+b600d46-dirty
</code></pre>

a8989
<p>Try increasing the <code>initialDelaySeconds</code>, port lower, and check for any transitive features (such as PVC) causing slow loading:</p>

<pre><code>livenessProbe:
  httpGet:
    path: /health
    port: 8080
  initialDelaySeconds: 200
  timeoutSeconds: 10
  periodSeconds: 10
  successThreshold: 1
  failureThreshold: 5
</code></pre>

<p>PS: For success on probe validation your HTTP return status must be greater than or equal to 200 and less than 400.</p>

<p>Hope this helps</p>
