Deploy GKE cluster using Terraform

From wikieduonline
Revision as of 20:52, 4 December 2023 by Welcome (talk | contribs)
Jump to navigation Jump to search

Terraform plan (GKE)

Terraform apply =

terraform apply
.../... 
Apply complete! Resources: 4 added, 0 changed, 0 destroyed.

Outputs: 

kubernetes_cluster_host = "22.27.74.22"
kubernetes_cluster_name = "your-project-gke"
project_id = "your-project"
region = "us-central1"

Configure credentials to connect:

gcloud container clusters get-credentials $(terraform output -raw kubernetes_cluster_name) --region $(terraform output -raw region)
kubectl get pod -A

Related

See als

Advertising: