Category: Kubernetes

Unlock Your Coding FutureWhere I work we use a repo-per-namespace setup and so it is often the case that I want to restart all the pods and deployments in a single Kubernetes namespace. Maybe I want to see the startup logs, maybe I want to take down production for a few seconds, don’t question my motivations. Anyhow, what does matter is that bouncing all the deployments one-by-one is really obnoxious and I don’t like typing.

I made a little open-source repo with installation instructions if you want to add it to your $PATH.

In essence, this line gets all the deployments in the target namespaces and saves them into a deploys variable.

Related Articles