Difference between revisions of "Deploy GKE cluster using Terraform"
Jump to navigation
Jump to search
Line 35: | Line 35: | ||
* <code>[[Unable to connect to the server]]</code> | * <code>[[Unable to connect to the server]]</code> | ||
* <code>[[gcp_filestore_csi_driver_config]]</code> | * <code>[[gcp_filestore_csi_driver_config]]</code> | ||
+ | * [[Deploy GKE cluster using Terraform: variables.tf]] | ||
== See als == | == See als == |
Revision as of 07:28, 31 October 2022
git clone https://github.com/hashicorp/learn-terraform-provision-gke-cluster cd learn-terraform-provision-gke-cluster
terraform plan (GKE using Terraform)
terraform plan | grep -w resource + resource "google_compute_network" "vpc" { + resource "google_compute_subnetwork" "subnet" { + resource "google_container_cluster" "primary" { + resource "google_container_node_pool" "primary_nodes" {
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"
gcloud container clusters get-credentials $(terraform output -raw kubernetes_cluster_name) --region $(terraform output -raw region)
kubectl get pod -A
Related
- Deploy EKS cluster using Terraform
terraform.tfvars
gke.tf
Unable to connect to the server
gcp_filestore_csi_driver_config
- Deploy GKE cluster using Terraform: variables.tf
See als
- Deploy GKE cluster using Terraform,
addons_config, gke.tf, google_container_cluster, google_container_node_pool
- GKE, GKE Autopilot,
gcloud container, gke-gcloud-auth-plugin
, GKE release channels, GKE Ingress, GCP Node logs, GCP Node logs severity Error, GKE roles, Provide access to GKE cluster, Deploy GKE cluster using Terraform,cluster_autoscaling, addons_config, GKE Node Pool
, node auto-provisioning
Advertising: