kubectl scale — Basic UsageIT technician command center
Containers · Docker and Kubernetes

kubectl scale — Basic Usage

Use kubectl scale for a standard administrative task.

Copy-ready commandkubectl scale — Basic Usage
kubectl scale deployment/web --replicas=3 -n production
Production warning

Stop, prune, delete, scale, restart, and apply operations can change running services.

Requirements and permissions

Requirements
Docker Engine, Docker Compose, or kubectl
Permissions
Container or cluster permissions vary
Last reviewed
2026-07-31

Examples

Basic Usage

Use kubectl scale for a standard administrative task.

kubectl scale deployment/web --replicas=3 -n production

Original command

Change deployment replica count.

kubectl scale deployment/web --replicas=3 -n production

Common errors

Command not found

Confirm Docker Engine, Docker Compose, or kubectl is installed and available in your current shell.