<p>I want to set a liveness probe. I am using a script to run a curl command. However i can see the liveness probe is failing with the following error:</p>
<p><strong>kubectl describe pod &lt;&gt;</strong></p>
<blockquote>
<p>Warning  Unhealthy  4m5s (x2 over 7m5s)  kubelet            Liveness
probe failed: OCI runtime exec failed: exec failed:
container_linux.go:380: starting container process caused: exec format
error: unknown</p>
<p>Liveness:  exec [./livenessprobe.sh] delay=180s timeout=120s
period=180s #success=1 #failure=2</p>
</blockquote>
<p><strong>deployment.yaml</strong></p>
<pre><code>        livenessProbe:
          exec:
            command:
            - ./livenessprobe.sh 
          initialDelaySeconds: 180 
          periodSeconds: 180
          timeoutSeconds: 120
          failureThreshold: 2
          successThreshold: 1
</code></pre>
<p>If i exec into the pod and run ./livenessprobe.sh i get the correct response. It is just a curl command</p>
<p><strong>./livenessprobe.sh</strong></p>
<pre><code>curl --fail -H &quot;Authorization: Basic &lt;redacted&gt;==&quot; -H &quot;Content-Type: application/json&quot; -H &quot;x-geeiq-origin: liveness-probe&quot; -i -X POST -d @livenessprobe-request.json http://0.0.0.0:8080/
</code></pre>

Kay
<p>I was able to get this working by altering the command.</p>
<pre><code>command:
- /bin/sh
- livenessprobe.sh 
</code></pre>
