<p>I have 2 containers in a pod. Main container and side car for sending logs to ELK.</p>

<p>I don't want the main container to restart when it fails, but I need the side car to get restarted automatically when it fails.</p>

<p>Setting RestartPolicy to Never is not restarting the side car also. Is there any way to set the restart policy at the container level?</p>

user1578872
<p>We have a proposal to formalize sidecar container lifecycles: <a href="https://github.com/kubernetes/enhancements/blob/master/keps/sig-apps/sidecarcontainers.md" rel="nofollow noreferrer">https://github.com/kubernetes/enhancements/blob/master/keps/sig-apps/sidecarcontainers.md</a></p>

<p>Take a look at that and see if it gets to what you need?</p>
