<p>I have a pod with a sidecar. The sidecar does file synchronisation and is optional. However it seems that if the sidecar crashes, the whole pod becomes unavailable. I want the pod to continue serving requests even if its sidecar crashed. Is this doable?</p>

<p>Set pod's <code>restartPolicy</code> to <code>Never</code>. It will prevent the <code>kubelet</code> from restarting your pod even if one of your containers failed.</p>
<blockquote>
<p>If a Pod is running and has two Containers. Container 1 exits with failure. If the <code>restartPolicy</code> it set to <code>Never</code>, the kubelet will not restart Container and the Pod's phase stays Running.</p>
</blockquote>
<ul>
<li><a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#example-states" rel="nofollow noreferrer">Reference</a></li>
</ul>
