Set a new size for a deployment.

Set a new size for a deployment. If --current-replicas or --resource-version is specified, it is validated before the scale is attempted, and it is guaranteed that the precondition holds true when the scale is sent to the server.

Authored by: AI
Brought to you by Warp, a free terminal reimagined to work like a modern app.
deployment_name
count

Command
Copy
kubectl scale deployment/deployment_name --replicas=count
Tags