Complete the code to create a GKE cluster in Autopilot mode.
gcloud container clusters create-auto my-cluster --region [1]The --region flag specifies the region for the Autopilot cluster. Here, europe-west1 is used as an example.
Complete the code to create a Standard GKE cluster with 3 nodes.
gcloud container clusters create my-standard-cluster --num-nodes=[1] --zone us-central1-aThe --num-nodes flag sets the number of nodes in the Standard cluster. Here, 3 nodes are specified.
Fix the error in the command to create an Autopilot cluster by selecting the correct flag.
gcloud container clusters create my-autopilot-cluster [1] us-central1--zone instead of --region for Autopilot.Autopilot clusters require the --region flag, not --zone.
Fill both blanks to create a Standard GKE cluster with a specific machine type and node count.
gcloud container clusters create my-standard-cluster --machine-type=[1] --num-nodes=[2] --zone us-east1-b
The --machine-type flag sets the VM type for nodes, here n1-standard-1. The --num-nodes flag sets the number of nodes, here 3.
Fill all three blanks to create an Autopilot cluster with a specific region and enable IP aliasing.
gcloud container clusters create-auto my-autopilot-cluster --region=[1] --enable-ip-alias=[2] --project=[3]
false for IP aliasing which disables it.The --region flag sets the cluster region (us-west1). --enable-ip-alias enables IP aliasing (true). --project specifies the GCP project ID (my-gcp-project).