Restart deployment (rolling)
Trigger zero-downtime pod rotation without changing spec
kubectl rollout restart deployment/<name> -n <ns>
- tool
- kubectl73 commands
- tags
- deployments
More kubectl commands
-
kubectl create namespace <ns>Create a new namespace; idempotent with --dry-run=client | apply
-
kubectl set resources deployment/<name> -c <container> --requests=cpu=100m,memory=128Mi --limits=cpu=500m,memory=512Mi -n <ns>Update resource requests and limits on a running deployment
-
kubectl run tmp --image=nicolaka/netshoot -it --rm --restart=Never -n <ns> -- bashEphemeral pod for debugging; deleted on exit
-
kubectl get nodes --show-labelsSee all labels assigned to each node
-
kubectl uncordon <node>Re-enable scheduling on a previously cordoned node