LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

kubectl-scale

sets a new size for a deployment, replica set, or replication controller

TLDR

Scale deployment replicas
$ kubectl scale deployment [name] --replicas=[3]
copy
Scale multiple deployments
$ kubectl scale deployment [name1] [name2] --replicas=[3]
copy
Scale with current replica check
$ kubectl scale deployment [name] --current-replicas=[2] --replicas=[3]
copy
Scale from file
$ kubectl scale -f [manifest.yaml] --replicas=[5]
copy

SYNOPSIS

kubectl scale type name --replicas=count [options]

DESCRIPTION

kubectl scale adjusts the replica count for deployments, replica sets, replication controllers, and stateful sets, allowing you to increase or decrease the number of running pod instances on demand. Changes take effect immediately, with the Kubernetes controller manager working to reconcile the actual state to the desired replica count.The command supports a precondition flag (--current-replicas) that causes the scaling operation to fail if the current number of replicas does not match the expected value, which is useful for preventing race conditions in automated workflows. You can also scale resources defined in manifest files and apply the operation to multiple resources in a single invocation.

PARAMETERS

--replicas count

Target number of replicas.
--current-replicas count
Precondition for current replicas.
-f, --filename file
Resource file to scale.
--timeout duration
Timeout for scaling operation.

INSTALL

sudo apt install kubectl
copy
sudo pacman -S kubectl
copy
sudo apk add kubectl
copy
brew install kubectl
copy
nix profile install nixpkgs#kubectl
copy

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid