Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/gke_autopilot_cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module "gke" {
source = "terraform-google-modules/kubernetes-engine/google//modules/gke-autopilot-cluster"
version = "~> 38.0"

project = var.project_id
project_id = var.project_id
name = "${local.cluster_type}-cluster"
location = var.region
network = module.gcp-network.network_self_link
Expand Down
4 changes: 2 additions & 2 deletions examples/gke_standard_cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module "gke" {
source = "terraform-google-modules/kubernetes-engine/google//modules/gke-standard-cluster"
version = "~> 38.0"

project = var.project_id
project_id = var.project_id
name = "${local.cluster_type}-cluster${var.cluster_name_suffix}"
location = var.region
network = var.network
Expand Down Expand Up @@ -87,7 +87,7 @@ module "node_pool" {
source = "terraform-google-modules/kubernetes-engine/google//modules/gke-node-pool"
version = "~> 38.0"

project = var.project_id
project_id = var.project_id
location = var.region
cluster = module.gke.cluster_name
node_config = {
Expand Down
2 changes: 1 addition & 1 deletion modules/gke-autopilot-cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ For a module with a complete configuration of a Google Cloud Platform Kubernetes
| pod\_security\_policy\_config | Configuration for the [PodSecurityPolicy](https://cloud.google.com/kubernetes-engine/docs/how-to/pod-security-policies) feature. | <pre>object({<br> enabled = bool<br> })</pre> | `null` | no |
| private\_cluster\_config | Configuration for private clusters, clusters with private nodes. | <pre>object({<br> enable_private_nodes = optional(bool)<br> enable_private_endpoint = optional(bool)<br> master_ipv4_cidr_block = optional(string)<br> private_endpoint_subnetwork = optional(string)<br> master_global_access_config = optional(object({<br> enabled = optional(bool)<br> }))<br> })</pre> | <pre>{<br> "enable_private_endpoint": true,<br> "enable_private_nodes": true,<br> "master_global_access_config": {<br> "enabled": true<br> }<br>}</pre> | no |
| private\_ipv6\_google\_access | The desired state of IPv6 access to Google Services. By default, no private IPv6 access to or from Google Services (all access will be via IPv4). | `string` | `null` | no |
| project | The ID of the project in which the resource belongs. If it is not provided, the provider project is used. | `string` | n/a | yes |
| project\_id | The ID of the project in which the resource belongs. If it is not provided, the provider project is used. | `string` | n/a | yes |
| protect\_config | Enable/Disable Protect API features for the cluster. | <pre>object({<br> workload_config = object({<br> audit_mode = string<br> })<br> workload_vulnerability_mode = optional(string)<br> })</pre> | `null` | no |
| release\_channel | The release channel of this cluster. Accepted values are `UNSPECIFIED`, `RAPID`, `REGULAR` and `STABLE`. Defaults to `REGULAR`. | <pre>object({<br> channel = optional(string)<br> })</pre> | <pre>{<br> "channel": "REGULAR"<br>}</pre> | no |
| resource\_labels | The GCE resource labels (a map of key/value pairs) to be applied to the cluster. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective\_labels' for all of the labels present on the resource. | `map(string)` | `null` | no |
Expand Down
2 changes: 1 addition & 1 deletion modules/gke-autopilot-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resource "google_container_cluster" "main" {

name = var.name
description = var.description
project = var.project
project = var.project_id
resource_labels = var.resource_labels
location = var.location
node_locations = var.node_locations
Expand Down
Loading