DELAPARRA
Index
Color
NL
Category: Kubernetes

scale

Explained by Updated

What is scale?

scale: Change the replica count of a Deployment, ReplicaSet, or StatefulSet imperatively. kubectl scale changes the number of replicas of a Deployment, StatefulSet or ReplicaSet directly: kubectl scale deployment web --replicas=5. It is useful for quick reactions, such as adding capacity during unexpected traffic or scaling a worker to zero to pause it.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about scale

What should you keep in mind with scale?

The change exists only in the cluster. If your manifests in Git say three replicas, the next deploy sets it back to three, and a GitOps tool may revert it within minutes. A HorizontalPodAutoscaler will also override manual scaling. For lasting changes, update the manifests or the autoscaler's limits. Use kubectl scale for temporary adjustments and remember to record why you did it.

What does an example of scale look like?

kubectl scale deployment web --replicas=5

At a glance

CategoryKubernetes
Explained by
Updated

More Kubernetes terms

All terms starting with S

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.