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)
| Name | Type | Description | Default | Required |
|---|---|---|---|---|
project_id | string | GCP project ID | — | yes |
name | string | Name of the cluster | — | yes |
location | string | Region or zone | — | yes |
network_id | string | VPC network ID | — | yes |
subnet_id | string | Subnet ID | — | yes |
enable_autopilot | bool | Enable Autopilot mode | true | no |
release_channel | string | Release channel | REGULAR | no |
enable_private_nodes | bool | Enable private nodes | true | no |
Outputs (4)
| Name | Description |
|---|---|
cluster_id | ID of the GKE cluster |
cluster_name | Name of the cluster |
endpoint | Kubernetes API endpoint |
workload_identity_pool | Workload Identity pool |