Did you try to restart?

Hasan Tayyar Beşik
1 min readMar 31, 2020

Memory leaks, bad behaviours, wrong disk usage, you name it… usually a restart “fixes” the issue and save some time to investigate the root cause.

Lucky you you are using a k8s cluster and restarts are not a problem.

I prepared a handy deployment for myself to use in these kind of situations.

It is a “CronJob” kind of kubernetes resource. The cronjob restarts the given deployment by name with given interval.

https://github.com/hasantayyar/restart-pods-cronjob

--

--

Hasan Tayyar Beşik

GCloud, AWS, Security, NodeJs, Berlin — This blog is mostly technical and multilingual. Be aware of possible and multiple typos!