Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 542 Bytes

Kubernetes Engine: Qwik Start.md

File metadata and controls

20 lines (17 loc) · 542 Bytes

Kubernetes Engine: Qwik Start

Run in cloudshell

export ZONE=
export REGION=${ZONE::-2}
gcloud config set compute/region $REGION
gcloud config set compute/zone $ZONE
gcloud container clusters create lab-cluster --machine-type=e2-medium --zone=$ZONE
gcloud container clusters get-credentials lab-cluster
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 lab-cluster