<p>I'm working on a website based in Google's Kubernetes</p>
<p>Our system has a workload that is for our main website.
Right now I have an uptime alert that will send me an text/email.</p>
<p>Under some very rare circumstances, the site will go down and the only way to fix this is to delete the pod that the web service is running on.  It'll then recreate itself and be back up and running.</p>
<p>However, I have to do this manually.  If I'm away from the computer, or not available for some reason, the site will stay down until I'm available to delete the pod and let it restart.</p>
<p>I would like this to be automated.  Is there a way to configure something like this?  Some process that, if there is an uptime alert failure, it'll automatically delete the web service pod(s) so that they recreate themselves?</p>

Justin Lloyd
<blockquote>
<p>I would like this to be automated. Is there a way to configure something like this? Some process that, if there is an uptime alert failure, it'll automatically delete the web service pod(s) so that they recreate themselves?</p>
</blockquote>
<p>If Kubernetes can detect this situation, you can use a <a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/" rel="nofollow noreferrer">Liveness probe</a> for this situation, and the Pod will be deleted (and re-created) if the probe fails.</p>
