You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| 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 |
57
-
| 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 |
57
+
| project\_id | The ID of the project in which the resource belongs. |`string`| n/a | yes |
58
58
| 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 |
59
59
| 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 |
60
60
| 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 |
Copy file name to clipboardExpand all lines: modules/gke-standard-cluster/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ For a module with a complete configuration of a Google Cloud Platform Kubernetes
54
54
| monitoring\_config | Monitoring configuration for the cluster. | <pre>object({<br> enable_components = optional(list(string))<br> })</pre> |`null`| no |
55
55
| monitoring\_service | The monitoring service that the cluster should write metrics to. Available options include `monitoring.googleapis.com`, `monitoring.googleapis.com/kubernetes`, and `none`. |`string`|`null`| no |
56
56
| name | The name of the cluster (required) |`string`| n/a | yes |
57
-
| network | The name or self\_link of the Google Compute Engine network to which the cluster is connected. For Shared VPC, this network must be in the host project. |`string`|`null`|no|
57
+
| network | The name or self\_link of the Google Compute Engine network to which the cluster is connected. For Shared VPC, this network must be in the host project. |`string`|n/a|yes|
58
58
| network\_policy | Configuration options for the NetworkPolicy feature. | <pre>object({<br> enabled = optional(bool)<br> provider = optional(string)<br> })</pre> |`null`| no |
| node\_locations | The list of zones in which the cluster's nodes are located. Nodes are created in the region's zones by default. This list must be a subset of the compute/zones in the region to which the cluster belongs. This field is optional for Zonal clusters and required for Regional clusters. |`list(string)`|`null`| no |
@@ -67,7 +67,7 @@ For a module with a complete configuration of a Google Cloud Platform Kubernetes
67
67
| 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\_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 |
70
-
| project\_id | The ID of the project in which the resource belongs. If it is not provided, the provider project id is used. |`string`| n/a | yes |
70
+
| project\_id | The ID of the project in which the resource belongs. |`string`| n/a | yes |
71
71
| protect\_config | Enable GKE Protect workloads for this cluster. | <pre>object({<br> workload_config = object({<br> audit_mode = string<br> })<br> workload_vulnerability_mode = optional(string)<br> })</pre> |`null`| no |
72
72
| release\_channel | Configuration for the release channel feature, which provides more control over automatic upgrades of your GKE clusters. | <pre>object({<br> channel = optional(string)<br> })</pre> |`null`| no |
73
73
| remove\_default\_node\_pool | If true, deletes the default node pool upon cluster creation. If you're using google\_container\_node\_pool resources with no default node pool, this should be set to true. |`bool`|`true`| no |
@@ -76,7 +76,7 @@ For a module with a complete configuration of a Google Cloud Platform Kubernetes
76
76
| secret\_manager\_config | Configuration for the SecretManagerConfig feature | <pre>object({<br> enabled = bool<br> })</pre> |`null`| no |
77
77
| security\_posture\_config | Security posture configuration for the cluster. mode - Sets the mode of the Kubernetes security posture API's off-cluster features. Available options include DISABLED, BASIC, and ENTERPRISE. vulnerability\_mode - Sets the mode of the Kubernetes security posture API's workload vulnerability scanning. Available options include VULNERABILITY\_DISABLED, VULNERABILITY\_BASIC and VULNERABILITY\_ENTERPRISE. | <pre>object({<br> mode = optional(string)<br> vulnerability_mode = optional(string)<br> })</pre> |`null`| no |
78
78
| service\_external\_ips\_config | Configuration for controlling how IPs are allocated to Service objects. | <pre>object({<br> enabled = optional(bool)<br> })</pre> |`null`| no |
79
-
| subnetwork | The name or self\_link of the Google Compute Engine subnetwork in which the cluster's instances are launched. |`string`|`null`|no|
79
+
| subnetwork | The name or self\_link of the Google Compute Engine subnetwork in which the cluster's instances are launched. |`string`|n/a|yes|
| vertical\_pod\_autoscaling | Vertical Pod Autoscaling automatically adjusts the resources of pods controlled by it. | <pre>object({<br> enabled = optional(bool)<br> })</pre> |`null`| no |
82
82
| workload\_alts\_config | Workload ALTS configuration for the cluster. Whether the alts handshaker should be enabled or not for direct-path. Requires Workload Identity (workloadPool) must be non-empty | <pre>object({<br> enable_alts = bool<br> })</pre> |`null`| no |
Copy file name to clipboardExpand all lines: modules/gke-standard-cluster/metadata.yaml
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -134,7 +134,7 @@ spec:
134
134
description: Description of the cluster.
135
135
varType: string
136
136
- name: project_id
137
-
description: The ID of the project in which the resource belongs. If it is not provided, the provider project id is used.
137
+
description: The ID of the project in which the resource belongs.
138
138
varType: string
139
139
required: true
140
140
- name: location
@@ -143,9 +143,11 @@ spec:
143
143
- name: network
144
144
description: The name or self_link of the Google Compute Engine network to which the cluster is connected. For Shared VPC, this network must be in the host project.
145
145
varType: string
146
+
required: true
146
147
- name: subnetwork
147
148
description: The name or self_link of the Google Compute Engine subnetwork in which the cluster's instances are launched.
148
149
varType: string
150
+
required: true
149
151
- name: node_locations
150
152
description: The list of zones in which the cluster's nodes are located. Nodes are created in the region's zones by default. This list must be a subset of the compute/zones in the region to which the cluster belongs. This field is optional for Zonal clusters and required for Regional clusters.
Copy file name to clipboardExpand all lines: modules/gke-standard-cluster/variables.tf
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ variable "description" {
27
27
}
28
28
29
29
variable"project_id" {
30
-
description="The ID of the project in which the resource belongs. If it is not provided, the provider project id is used."
30
+
description="The ID of the project in which the resource belongs."
31
31
type=string
32
32
}
33
33
@@ -40,13 +40,11 @@ variable "location" {
40
40
variable"network" {
41
41
description="The name or self_link of the Google Compute Engine network to which the cluster is connected. For Shared VPC, this network must be in the host project."
42
42
type=string
43
-
default=null
44
43
}
45
44
46
45
variable"subnetwork" {
47
46
description="The name or self_link of the Google Compute Engine subnetwork in which the cluster's instances are launched."
0 commit comments