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
7003 gcloud compute instances list | |
7004 gcloud auth login | |
8152 gcloud compute instances stop instance-2 | |
8153 gcloud config set project dark-caldron-89709 | |
8154 gcloud components update | |
8155 gcloud compute instances stop instance-2 | |
8156 gcloud compute instances list | |
8157 gcloud compute instances start instance-2 | |
8189 gcloud compute forwarding-rules list | |
8190 gcloud compute networks describe default --format json |
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
gcloud compute instance-groups unmanaged create taiwan \ | |
--zone asia-east1-a | |
gcloud compute instance-groups unmanaged add-instances taiwan \ | |
--instances $(kubectl get nodes \ | |
--context taiwan \ | |
--output=jsonpath='{range .items[*]}{.metadata.name},{end}') \ | |
--zone asia-east1-a | |
gcloud compute instance-groups set-named-ports taiwan \ |
About kubeconfig
and Sharing kubeconfigs
When you create a Google Cloud Container cluster with gcloud container clusters create
it also generates a kubeconfig
entry.
See the output below:
Creating cluster petclinic...done.
Created [https://container.googleapis.com/v1/projects/gcloud-testing-vish/zones/asia-east1-a/clusters/petclinic].
kubeconfig entry generated for petclinic.
NAME LOCATION MASTER_VERSION MASTER_IP MACHINE_TYPE NODE_VERSION NUM_NODES STATUS