Interview Prep/Kubernetes/Rapid-Fire Commands

How do you scale a Deployment or StatefulSet imperatively?

BeginnerProductionRapid-Fire Commands
Answer
kubectl scale deploy/web --replicas=5
kubectl scale sts/db --replicas=3

With an HPA present, the HPA will override manual scaling.

All Kubernetes questions

More on Rapid-Fire Commands