Tech/Kubernetes

Tech/Kubernetes

GKE - 명령어들

$ kubectl version $ kubectl create deployment [..] --image=example/[..]:0.0.1.RELEASE $ kubectl expose deployment [..] --type=LoadBalancer --port=8080 $ kubectl get events -> Pod, ReplicaSet, Deployment, Service docker run -p 8080:8080 in28min/hello-world-rest-api:0.0.1.RELEASE kubectl create deployment hello-world-rest-api --image=in28min/hello-world-rest-api:0.0.1.RELEASE kubectl expose deploy..

Tech/Kubernetes

GKE - 클러스터 노드 사이즈 감소, 증가

클라우드 환경에서는 리소스를 사용하지 않을 때, 삭제하는 것이 가장 좋다. 이에 클러스터 노드 사이즈를 0으로 감소시키는 명령어는 다음과 같다. gcloud container clusters resize --zone --num-nodes=0 반대로 다시 노드의 숫자를 증가시키고자 한다면, 다음의 명령어를 입력하면 된다. gcloud container clusters resize --zone --num-nodes=3

kimjingyu
'Tech/Kubernetes' 카테고리의 글 목록