As of kubernetes 1.15 there is an easy way to restart all pods in a deployment.
kubectl -n {NAMESPACE} rollout restart deploy
Thanks Lane give him a follow @wagslane
Note
This post is a thought. Itβs a short note that I make about someone elseβs content online #thoughts