Goolge Cloud Skills Boost

GSP304/Build and Deploy a Docker Image to a Kubernetes Cluster

컨텐츠 정보

본문

``` gsutil cp gs://sureskills-ql/challenge-labs/ch04-kubernetes-app-deployment/echo-web.tar.gz . ``` OR ``` gsutil cp gs://$DEVSHELL_PROJECT_ID/echo-web.tar.gz . ``` ``` tar -xvf echo-web.tar.gz ``` ``` gcloud builds submit --tag gcr.io/$DEVSHELL_PROJECT_ID/echo-app:v1 . ``` ``` gcloud container clusters create echo-cluster --num-nodes 2 --zone us-central1-a --machine-type n1-standard-2 ``` ``` kubectl create deployment echo-web --image=gcr.io/qwiklabs-resources/echo-app:v1 ``` ``` kubectl expose deployment echo-web --type=LoadBalancer --port=80 --target-port=8000 ``` ``` kubectl get svc ```

관련자료

댓글 0
등록된 댓글이 없습니다.
전체 21 / 1 페이지
RSS