Google Cloud Platform

[GKE] kubectl scale

nockdoo 2020. 5. 23. 23:38

kubectl explain deployment.spec.replicas

 

kubectl scale deployment hello --replicas=5

 

kubectl get pods | grep hello- | wc -l

 

kubectl scale deployment hello --replicas=3

 

kubectl get pods | grep hello- | wc -l

'Google Cloud Platform' 카테고리의 다른 글

[GKE] Canary deployments  (0) 2020.05.24
[GKE] Canary deployments in production - session affinity  (0) 2020.05.23
[GKE] call http by curl, kubectl  (0) 2020.05.23
[GKE] kubectl explain  (0) 2020.05.23
[GKE] kubectl port-forward  (0) 2020.05.21