<p>Is it possible to have multiple handlers in a container probe ? 
Something like </p>

<pre><code>livenessProbe: {
     httpGet: {
         path: "/ping",
         port: 9099
     },
     exec: {
         command: [
             "verify-correctness.sh",
         ]
     }
 }
</code></pre>

<hr>

<p>Update:</p>

<p>At Kube 1.6x <code>kubectl apply</code> for a config like this returns </p>

<pre><code>spec.template.spec.containers[0].livenessProbe.httpGet: Forbidden: may not specify more than 1 handler type
</code></pre>

<p>So maybe not supported ? </p>

<hr>

<p>Update 2:</p>

<p>After <a href="https://stackoverflow.com/a/49261781/5771861">Ara Pulido</a>'s answer I combined the httpGet into the command like this:</p>

<pre><code> "livenessProbe": {
             "exec": {
                "command": [
                   "sh",
                   "-c",
                   "reply=$(curl -s -o /dev/null -w %{http_code} http://127.0.0.1:9099/ping); if [ \"$reply\" -lt 200 -o \"$reply\" -ge 400 ]; then exit 1; fi; verify-correctness.sh;"
                ]
             }
          }
</code></pre>

<p>It is not supported.</p>

<p>There is <a href="https://github.com/kubernetes/kubernetes/issues/37218" rel="nofollow noreferrer">an open issue</a> about this, which contains several workarounds people use.</p>
