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
# What is bastiot host? | |
Bastion host is usually public-facing, hardened systems that serve as an entrypoint to systems behind a firewall or other restricted location, and they are especially popular with the rise of cloud computing | |
# Proxy Jump | |
## Command | |
``` | |
$ ssh -J <bastion_host> <remote-host> | |
``` |
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 |
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
# Step 1 | |
Run google cloud shell | |
$ gcloud config set compute/zone us-central1-a | |
On google console -> Navigation menu -> Kubernetes Engine -> Cluster | |
Chose create cluster with gke standard. |