All Modules
GCPCompute

GKE

Google Kubernetes Engine with Autopilot or Standard mode, Workload Identity

Usage

module "gke" {
  source = "github.com/fencepencil/gcp-modules//gke"

  project_id = "<project_id>"
  name = "<name>"
  location = "<location>"
  network_id = "<network_id>"
  subnet_id = "<subnet_id>"

  tags = var.tags
}

Inputs (8)

NameTypeDescriptionDefaultRequired
project_idstringGCP project IDyes
namestringName of the clusteryes
locationstringRegion or zoneyes
network_idstringVPC network IDyes
subnet_idstringSubnet IDyes
enable_autopilotboolEnable Autopilot modetrueno
release_channelstringRelease channelREGULARno
enable_private_nodesboolEnable private nodestrueno

Outputs (4)

NameDescription
cluster_idID of the GKE cluster
cluster_nameName of the cluster
endpointKubernetes API endpoint
workload_identity_poolWorkload Identity pool

More GCP Modules

Browse our full library of GCP infrastructure modules.

View all GCP modules