Pod의 replica 수를 늘이거나 줄이는 방법 (kubectl scale)
kubectl scale 명령어를 사용하면 됩니다. 다음은 Kubernetes 공식 문서 상에 기재된 내용입니다. kubectl scale --replicas=3 rs/foo # Scale a replicaset named 'foo' to 3 kubectl scale --replicas=3 -f foo.yaml # Scale a resource specified in "foo.yaml" to 3 kubectl scale --current-replicas=2 --replicas=3 deployment/mysql # If the deployment named mysql's current size is 2, scale mysql to 3 kubectl scale --replicas=5 rc/foo rc/bar rc/baz # Scale multiple replication controllers 만일 Deployment에 의해 생성된 ReplicaSet이라면 Deployment를 대상으로 scale 합니다. 다음과 같은 느낌입니다. $ kubectl get pods -A aeug tour-75866547dd-26tkt 1/1 Running 0 19h $ kubectl scale deployment/tour -n aeug --replicas=3 deployment.apps/tour scaled $ kubectl get pods -A | grep tour aeug tour-75866547dd-26tkt...