<p>I'm trying to deploy an app that contains a health check endpoint. If it fails, the pod should be destroyed, but the K8s keeps the pod with Running status.</p>

<p>Config:</p>

<pre><code>     readinessProbe:
        httpGet:
          path: /healthcheck
          port: 3001
        initialDelaySeconds: 5
        periodSeconds: 5
        successThreshold: 1
</code></pre>

<p>Pod:</p>

<pre><code>docs-app-768b47bc69-lrlcf      0/1       Running   0          1m
</code></pre>

<p>So, there is a way to destroy the pod when the readiness probe fails?</p>

Bruno Quaresma
<p>This is not what probes are meant for. LivenessProbe, in case of failure, after retrying configured number of times will "restart" the pod. Instead the ReadinessProbe is useful to indicate that the pod should not serve traffic during failure. Probes are not meant to run or abort the pod, if you need that you have to write a plugin to monitor pod status and delete the replica or deployment in case of failure. </p>
