Member-only story
Kubectl Tip #1
A weekly kubectl command you might find useful

I’m starting this blog series where I’ll be sharing some occasionally useful kubectl
commands. I hope you find a few tips handy.
The Command
This one liner cycles every deployment in a namespace.
Why would you do this?
You might want to get all new processes to pick up a new DNS endpoint. Maybe you switched out your CNI and need to recreate all pods. Perhaps your database was updated and your apps have stale connections. Rarely used, but useful when required.
You could also use the -A
flag to cycle all namespaces.
Wrapping Up
Found the tip useful? if you did, please consider subscribing! I’ll be posting one tip every week for the rest of the year.