Matt Can Code  

Simonyeung2020@gmail.com (user command "gcloud init" if you want to switch to annother account)

https://console.cloud.google.com/home/dashboard?authuser=1&project=exalted-stage-303908

 

 

 

 

 Leverge CLOUD SHELL to access GKE

 Create Deployment:

kubectl create deployment hello-world-rest-api --image=in28min/hello-world-rest-api:0.0.1.RELEASE

Expose endpoints

kubectl expose deployment hello-world-rest-api --type=LoadBalancer --port=8080

 

  

 

 

 

 Scale up replicaset in deployment

 Install GCloud  https://cloud.google.com/sdk/docs/install

Power Shell 

(New-Object Net.WebClient).DownloadFile("https://dl.google.com/dl/cloudsdk/channels/rapid/GoogleCloudSDKInstaller.exe", "$env:Temp\GoogleCloudSDKInstaller.exe")

& $env:Temp\GoogleCloudSDKInstaller.exe
     

 

 Use gcloud to connect to cluster

 

posted on 2026-01-17 11:15  Matt Yeung  阅读(1)  评论(0)    收藏  举报