<p>I'm hosting my <a href="https://hub.docker.com/r/prismagraphql/prisma/" rel="nofollow noreferrer">Prisma docker container</a> on a Kubernetes cluster that requires a health check path to determine whether the container is alive. Since I don't have any control over the endpoints in this container, how would I add a health check route that Kubernetes could hit?</p>

<p>Add this to your prisma container manifest file. If you deploy prisma by a <code>deployment</code>, run:</p>

<pre><code>$ kubectl edit deployment &lt;prisma_deployment_name&gt; --namespace &lt;namespace&gt;
</code></pre>

<p>And put the following probe spec in the prisma container spec.</p>

<hr>

<pre><code>    livenessProbe:
      httpGet:
        path: /
        port: 4466
      # Number of seconds after the container has started before probes are initiated.
      initialDelaySeconds: 120
      # How often (in seconds) to perform the probe.
      periodSeconds: 10
      # Number of seconds after which the probe times out.
      timeoutSeconds: 60
    readinessProbe:
      httpGet:
        path: /
        port: 4466
      # Number of seconds after the container has started before probes are initiated.
      initialDelaySeconds: 120
      # How often (in seconds) to perform the probe.
      periodSeconds: 10
      # Number of seconds after which the probe times out.
      timeoutSeconds: 60
</code></pre>
