Namespace plains-duvleh has a Deployment market-web with 3 replicas.
sh
kubectl get deploy,rs,pods -n plains-duvlehOne Deployment, one ReplicaSet, three Pods.
Scale up
sh
kubectl scale deploy market-web --replicas=5 -n plains-duvleh
kubectl get pods -n plains-duvlehTwo new Pods appear with the same ReplicaSet hash in their names. Run get pods again until all five show Running.
sh
kubectl get rs -n plains-duvlehCount the ReplicaSets. That number is an answer.
Scale down
sh
kubectl scale deploy market-web --replicas=2 -n plains-duvleh
kubectl get pods -n plains-duvlehThree Pods go to Terminating and disappear. The ReplicaSet is the same one; only its DESIRED changed.
text
scale → spec.replicas changes → same ReplicaSet, Pod count changes
set image → spec.template changes → new ReplicaSet, Pods replaced