📅  最后修改于: 2022-03-11 14:51:49.302000             🧑  作者: Mango
#In this step, you have to create a Kubernetes Service Cluster
#1. Create the cluster in the us-east1 region.
#2. Using the Docker container hello-app (`gcr.io/google-samples/hello-app:2.0`) as a place holder.
#3. Open the app on port 8080
#4. Activate Cloud Shell and write the following commands
gcloud config set compute/zone us-east1-b
gcloud container clusters create nucleus-jumphost-webserver1
gcloud container clusters get-credentials nucleus-jumphost-webserver1
kubectl create deployment hello-app --image=gcr.io/google-samples/hello-app:2.0
kubectl expose deployment hello-app --type=LoadBalancer --port 8080
kubectl get service