<p>If an <code>uncaughtException</code> occurs in Docker container running node app which is wrapped by Kubernetes Pod and due to this exception the server gets down, what should I do?</p>

Raz Buchnik
<p>If you use <code>ReplicaSet</code> (<code>Deployment</code> is also a <code>ReplicaSet</code>), then after the application crashes, the pod will also crash, as a result of which the <code>ReplicaSet</code> will create a new pod.</p>
<p>PS: I think it's obvious that <code>uncaughtException</code> occurs when there are uncaught exceptions in your code (not in <code>promises</code> and <code>async/await</code>). To prevent this event from being raised, you need to add exception handlers wherever exceptions might be thrown.</p>
