Let's perform the following steps:
- Create a cluster:
$ gcloud container clusters create k8s-devops-cookbook-1
--cluster-version latest --machine-type n1-standard-2
--image-type UBUNTU --disk-type pd-standard --disk-size 100
--no-enable-basic-auth --metadata disable-legacy-endpoints=true
--scopes compute-rw,storage-ro,service-management,service-control,logging-write,monitoring
--num-nodes "3" --enable-stackdriver-kubernetes
--no-enable-ip-alias --enable-autoscaling --min-nodes 1
--max-nodes 5 --enable-network-policy
--addons HorizontalPodAutoscaling,HttpLoadBalancing
--enable-autoupgrade --enable-autorepair --maintenance-window "10:00"
Cluster creation will take 5 minutes or more to complete.