Provisioning a managed Kubernetes cluster on GKE

Let's perform the following steps:

  1. 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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.218.69