cluster
JamesWoolfenden/cluster/gcp
Set up a GKE cluster connected as part of shared VPC
terraform-gcp-cluster     A lightweight GKE cluster module. ``terraform module "cluster" { source = "JamesWoolfenden/cluster/gcp" ip_allocation_policy = var.ip_allocation_policy location = var.location master_authorized_network_cidr = module.ip.cidr name = var.name network = var.network network_project = var.network_project node_pool = var.node_pool private_cluster_config = var.private_cluster_config region = var.region subnetwork = var.subnetwork network_policy_config_disabled = var.network_policy_config_disabled } ` Connecting: `bash gclo
| Name | Type | Description | Default |
|---|---|---|---|
| project | string | The GCP project of the Network the cluster is in | required |
| master_authorized_network_cidr | string | The range of IPs that can connect to the Kubernetes master | required |
| region | string | The GCP region | required |
| ip_allocation_policy | map(any) | Values to fill the cluster ip_allocation_policy block | required |
| private_cluster_config | map(any) | Values to fill the cluster private_cluster_config block | required |
| network | string | The VPC | required |
| subnetwork | string | The name of the sub-net to use | required |
| key_name | string | Changing key name as keys and key rings are undeletable | required |
| location | string | required | |
| zones | string | required | |
| name | string | The Name of the cluster | required |
| kubernetes_dashboard_disabled | bool | Switch on the Dashboard | false |
| node_pool | map(any) | Configuration of the Node hosts | {
"auto_repair": "true",
"auto_upgra |
| pod_security_policy_config_enabled | bool | true | |
| network_policy | bool | To enable the network policy | true |
| resource_labels | map(any) | {
"createdby": "terraform",
"module" | |
| maintenance_window | string | "00:30" | |
| auto_upgrade | bool | true | |
| http_load_balancing_disabled | bool | Disable Http Load balancing | false |
| network_policy_config_disabled | bool | Toggle network policy | false |
| release_channel | string | Set the release channel UNSPECIFIED|RAPID|REGULAR|STABLE | "STABLE" |
service_account