Restart all deployments in a Kubernetes namespace January 31, 20211 Min readIn Uncategorised2 comments Quick bash script to restart all Kubernetes Deployments in a Namespace. Easily modified for Daemonsets and/or StatefulSets, or to restart all controllers if required. View the code on Gist. FacebookTwitter
Since kubectl v1.15 you can do: kubectl rollout restart deployment -n
Form ate my brackets: kubectl rollout restart deployment -n namespace