title: Kubernetes: how to restart pods on memory or/and time limits?
body: <p>Is there a way to restart pods automatically after some time or when they reach some memory limit?</p>
  
  <p>I want achieve the same behavior as gunicorn(or any mainstream process manager does)</p>