GKE 생성 및 기본

조회 739 · 댓글 0
BBerger작성자2021년 12월 24일
클러스터 생성
gcloud container clusters create [CLUSTER-NAME]


클러스터의 사용자 인증 정보 얻기
gcloud container clusters get-credentials [CLUSTER-NAME]


클러스터에 앱 배포
kubectl create deployment hello-server --image=gcr.io/google-samples/hello-app:1.0


쿠버네티스 서비스 생성
kubectl expose deployment hello-server --type=LoadBalancer --port 8080


클러스터 삭제
gcloud container clusters delete [CLUSTER-NAME]

로그인 후 답글을 남길 수 있습니다.