logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Kubectl Scale - Control Deployment Size | Online Free DevTools by Hexmos

Control deployment size with Kubectl Scale. Easily adjust the number of replicas for deployments, replica sets, and stateful sets. Free online tool, no registration required.

kubectl-scale

Set a new size for a deployment, replica set, replication controller, or stateful set. More information: https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#scale.

  • Scale a replica set:

kubectl scale --replicas={{number_of_replicas}} rs/{{replica_name}}

  • Scale a resource identified by a file:

kubectl scale --replicas={{number_of_replicas}} {{[-f|--filename]}} {{path/to/file.yml}}

  • Scale a deployment based on current number of replicas:

kubectl scale --current-replicas={{current_replicas}} --replicas={{number_of_replicas}} deployment/{{deployment_name}}

See Also