Different ways of creating GKE Cluster

  1. Using Google Cloud Console
  2. Using Google Cloud CLI
  3. Using Terraform
  4. Using Deployment Manager

Please have a gcp account created prior to this. If not please visit my post http://www.codebuildeploy.com/create-a-free-gcp-account/

1. Once you have your account ready please goto the dashboard.

Then click on hamburger menu on the top left and select Kubernetes Engine -> Clusters under Compute Engine

Click on Create cluster

Keep the selection default and click on create which will create a cluster with default settings

2. Create Kubernetes Engine cluster using gcloud command line tool.

gcloud beta container --project "long-micron-290800" clusters create "cluster-1" --zone "us-central1-c" --no-enable-basic-auth --cluster-version "1.15.12-gke.20" --machine-type "e2-medium" --image-type "COS" --disk-type "pd-standard" --disk-size "100" --metadata disable-legacy-endpoints=true --scopes "https://www.googleapis.com/auth/devstorage.read_only","https://www.googleapis.com/auth/logging.write","https://www.googleapis.com/auth/monitoring","https://www.googleapis.com/auth/servicecontrol","https://www.googleapis.com/auth/service.management.readonly","https://www.googleapis.com/auth/trace.append" --num-nodes "3" --enable-stackdriver-kubernetes --enable-ip-alias --network "projects/long-micron-290800/global/networks/default" --subnetwork "projects/long-micron-290800/regions/us-central1/subnetworks/default" --default-max-pods-per-node "110" --no-enable-master-authorized-networks --addons HorizontalPodAutoscaling,HttpLoadBalancing --enable-autoupgrade --enable-autorepair --max-surge-upgrade 1 --max-unavailable-upgrade 0

3. Create GKE Cluster using Terraform

4. Creating GKE cluster using Deployment Manager

Coming Soon…….