May 2018
Intermediate to advanced
554 pages
13h 51m
English
Regional clusters are still in the beta phase. To use these, we'll have to enable the gcloud beta command. We can enable it via this command:
# export CLOUDSDK_CONTAINER_USE_V1_API_CLIENT=false # gcloud config set container/use_v1_api false Updated property [container/use_v1_api].
Then we should be able to use the gcloud v1beta command to launch the regional cluster:
# gcloud beta container clusters create my-k8s-cluster --cluster-version 1.9.2-gke.1 --machine-type f1-micro --num-nodes 2 --network k8s-network --tags private --scopes=storage-rw,compute-ro --region us-central1 Creating cluster my-k8s-cluster...done. Created [https://container.googleapis.com/v1beta1/projects/kubernetes-cookbook/zones/us-central1/clusters/my-k8s-cluster]. ...
Read now
Unlock full access