<p>What is the best way to restart all pods in a cluster? I was thinking that setting a cronjob task within kubernetes to do this on a normal basis and make sure that the cluster is load balanced evenly, but what is the best practice to do this on a normal basis? Also, what is the best way to do this as a one-time task?</p>

mmiara
<p>This is a bad idea. Check out <a href="https://github.com/kubernetes-sigs/descheduler" rel="noreferrer">https://github.com/kubernetes-sigs/descheduler</a> instead to do it selectively and with actual analysis :)</p>

<p>But that said, <code>kubectl delete pod --all --all-namespaces</code> or similar.</p>
