All languages

Kubernetes

You're viewing a free preview. Sign in free to read every script.

Why this exists Some changes (a ConfigMap update, a Secret rotation) don't trigger a rollout on their own — the Pods keep running with the old values mounted until something restarts them. Restarting one Deployment is a…

kubectl Bulk Restart by Label

A script that restarts every Deployment matching a label selector — for the common "roll every service in this namespace to pick up a new ConfigMap" situation, without hand-typing kubectl rollout restart for each one.

Sign in free to read this script, along with the rest of the library.

Sign in free