Scaling
Scale a Deployment
Imperative scale is fine for labs.
kubectl scale deployment web --replicas=3
kubectl get pods -l app=web
Watch the rollout
New pods appear; surplus pods terminate when scaling down.
kubectl get pods -w
Autoscaling (awareness)
Horizontal Pod Autoscalers adjust replicas from metrics. Learn manual scaling first; add HPA when metrics are available in your cluster.
kubectl get hpa
Match capacity to need
More replicas need CPU/memory headroom on nodes. Local clusters are small—scale gently.
Comments
One comment per signed-in account. Comments are saved with this page’s URL.