建立自己的GKE Cluster
安裝kubectl指令與相關設定
$ gcloud components update kubectl
$ gcloud config set compute/zone asia-east1-a$ gcloud container clusters list
NAME ZONE MASTER_VERSION MASTER_IP MACHINE_TYPE NUM_NODES STATUS
Listed 0 items.$ kubectl get cluster-info
the server doesn't have a resource type "cluster-info"建立GKE Cluster
$ gcloud container clusters create mygke
Creating cluster mygke...done.
Created [https://container.googleapis.com/v1/projects/my-gcp-project/zones/asia-east1-a/clusters/mygke].
kubeconfig entry generated for mygke.
NAME ZONE MASTER_VERSION MASTER_IP MACHINE_TYPE NUM_NODES STATUS
mygke asia-east1-a 1.1.2 104.199.140.230 n1-standard-1 3 RUNNING設定環境使用
調整 GKE group 大小
kubectl操作指令與K8S API
K8S所提供的APIS

Reference
Last updated