Last active
October 19, 2021 03:01
-
-
Save trungng1992/b6aec71544b0823dda2c8a87c6e8c916 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scale Out and Update a Containerized Application on a Kubernetes Cluster | |
##### Download source code web-v2 | |
$ gsutil cp gs://$DEVSHELL_PROJECT_ID/echo-web-v2.tar.gz . | |
$ tar -zxvf echo-web-v2.tar.gz | |
$ gcloud builds submit --tag gcr.io/$DEVSHELL_PROJECT_ID/echo-app:v2 . | |
##### Update deploy to new version | |
$ kubectl set image deployment/echo-web echo-app=gcr.io/$DEVSHELL_PROJECT_ID/echo-app:v2 | |
##### Scale deployment run two pods | |
$ kubectl scale deployment/echo-web --replicas=2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment