Based on the following Terraform example we'll create a public cluster.
Assumes a service account has been created with appropriate role and permissions to create a GKE cluster.
cp terraform.tfvars.sample terraform.tfvars
Amend the values for
gcp_project
gcp_service_account_credentials
gcp_region
You're also free to update any other input variable value
./create-cluster.sh
./list-clusters.sh
Use the name and location of the cluster you just created to update kubeconfig
and set the current context for kubectl
./set-kubectl-context.sh <gke-cluster-name> <gke-zone>
See Resizing a cluster.
kubectl get pods -A
./destroy-cluster.sh