Update the scale subresource directly.
Section: Advanced Pod and Controller Operations
Patch scale subresource
bash
bash
kubectl patch deployment web --subresource=scale -p '{"spec":{"replicas":8}}' -n paymentsExplanation
Update the scale subresource directly.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Advanced Pod and Controller Operations