<p>I have one docker container what is running pyppeteer.
It have memory leak, so it will stoped in 24 hours.</p>

<p>I need some auto healing system, I think Kubernetes can do that. No loadbalance, just one instance, one container. It is suitable?</p>

<p>++++</p>

<p>Finally, I selected docker-py, managed by using containers.run, containers.prune.</p>

<p>It is working for me.</p>

Joon
<p>If your container has no state, and you know it is going to run out of memory every 24 hours, I would say cronjob is the best option.</p>

<p>You can do what you want on k8s, but that's overkilling. Entire k8s cluster for one container, doesn't sound right to me.</p>

<p>Another thing is if you have more apps, or containers as k8s can run lots of services independent one from another, so you would not be wasting resources.</p>
