Skip to content

Instantly share code, notes, and snippets.

View trungng1992's full-sized avatar

ChunChun trungng1992

View GitHub Profile
# 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>
```
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
# 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.