<p>I just have a doubt on whether is possible to run multiples liveness probes in the same <code>deployment.yaml</code>.
For example: I already have a liveness probe that runs a python script that check my application like:</p>
<pre><code>livenessProbe:
  failureThreshold: 5
  initialDelaySeconds: 15
  timeoutSeconds: 10
  periodSeconds: 60
  exec:
    command: [&quot;/usr/local/bin/python&quot;, &quot;/app/check_application_health.py&quot;]
</code></pre>
<p>Is that possible to include another liveness probe that check a <code>httpGet</code> healthcheck? Or should I include a <code>httpGet</code> healthcheck in this python script and run all in one?</p>
<p>Thanks!</p>

Arthur Ávila
<p>Hi Currently its not possible,</p>
<p>as a workaround you can do something like this</p>
<pre><code>&quot;livenessProbe&quot;: {
         &quot;exec&quot;: {
            &quot;command&quot;: [&quot;sh&quot;, &quot;-c&quot;,
               &quot;reply=$(curl -s -o /dev/null -w %{http_code} http://&lt; healthcheck url&gt;); if [ \&quot;$reply\&quot; -lt 200 -o \&quot;$reply\&quot; -ge 400 ]; then exit 1; fi; /app/check_application_health.py;&quot;
            ]
         }
      }
</code></pre>
<p>Source: <a href="https://github.com/kubernetes/kubernetes/issues/37218#issuecomment-372887460" rel="nofollow noreferrer">https://github.com/kubernetes/kubernetes/issues/37218#issuecomment-372887460</a></p>
