As per page#101, 4.3.3, "scale" options is missing NS statement:
$ kubectl scale deployment webserver --replicas=2
$ kubectl get pod -o wide -n ns-isolated
NAME READY STATUS RESTARTS AGE IP NODE
webserver-85fc7dd848-6l7j2 1/1 Running 0 8s 10.47.255.239 cent222
webserver-85fc7dd848-215k8 1/1 Running 0 8s 10.47.255.238 cent333
Recommendation:
[root@cent111 template]# kubectl scale deployment webserver --replicas 2 -n ns-isolated
deployment.extensions/webserver scaled
[root@cent111 template]#
[root@cent111 template]# kubectl get pod -o wide -n ns-isolated
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE
webserver-7c7c458cc5-tshf7 1/1 Running 0 71m 10.47.255.248 cent333
webserver-7c7c458cc5-xwckr 1/1 Running 0 15s 10.47.255.246 cent222
[root@cent111 template]#
As per page#101, 4.3.3, "scale" options is missing NS statement:
Recommendation: