Cheatsheet Pages / kubectl Cheatsheet

How to restart all pods of a deployment — kubectl rollout restart

Pods need a fresh start — for example to pick up a reloaded ConfigMap — with no config change.

Placeholders follow the cheatsheet: web is a deployment/pod name and app.yaml is your manifest. Most commands act on the current namespace — add -n <ns> to target another one.

kubectl rollout restart deployment/web   # fresh pods pick up reloaded ConfigMaps/Secrets

Good to know

Restart all pods without changing the configuration.

kubectl Cheatsheet one-page card — commands that actually work
The full one-page card — kubectl Cheatsheet. Get the complete cheatsheet on GitHub