<p>Currently I started to use a kubernetes environment to deploy a react app. One thing that should be set are the healthiness and readiness probes. How should they look like for a react app, or are probes used for frontend apps?</p>

user2329919
<p>If you can expose services, you should add a simple API with a fast response for the health check like:</p>
<pre><code>app.get('/health-check',(req,res)=&gt; {
  res.send (&quot;OK&quot;);
});
</code></pre>
<p>use this in your readiness probe.</p>
<p>Otherwise you could use a TCP readiness and liveness probe on the exposed port and the same on a startup probe with a greater failureThreshold time.<br />
You may also use the startup probe on the index file, or to check the correctness of the directories structure.</p>
<p>Here you can find the relative docs:
<a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/</a></p>
