title: Terminate a pod when container dies
body: <p>I want to terminate a pod when container dies but I did not find a efficient way of doing it.  </p>
  
  <p>I can kill the pod using kubctl but I want pod should get killed/restart automatically whenever any container restarts in a pod.  </p>
  
  <p>Can this task be achieved using operator?</p>