6.1 Scaling Pods and nodes
View in the book.
Buy the book.
Scaling Pods.
To scale Pods, update the replica count in the YAML and apply:
Or, imperatively with
kubectl scale deployment timeserver --replicas=6
Track the rollout:
$ kubectl get pods -w
NAME READY STATUS RESTARTS AGE
timeserver-dd88988f5-4cshb 1/1 Running 0 42s
timeserver-dd88988f5-5b4r6 1/1 Running 0 84s
timeserver-dd88988f5-6czvt 0/1 Pending 0 42s
timeserver-dd88988f5-b6ph7 0/1 Pending 0 42s
timeserver-dd88988f5-m7xss 0/1 Pending 0 42s
timeserver-dd88988f5-qr94x 1/1 Running 0 42s