add to GKE cluster module
This commit is contained in:
parent
bce602f7f7
commit
df0b4c532a
|
@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
|
|||
- fix Cloud NAT module internal router name lookup
|
||||
- re-enable and update outputs for the foundations environments example
|
||||
- add peering route configuration for private clusters to GKE cluster module
|
||||
- add `workload_metadata_config` variable to GKE cluster module
|
||||
- **incompatible changes** in the GKE nodepool module
|
||||
- rename `node_config_workload_metadata_config` variable to `workload_metadata_config`
|
||||
- new default for `workload_metadata_config` is `GKE_METADATA_SERVER`
|
||||
|
|
|
@ -65,6 +65,7 @@ module "cluster-1" {
|
|||
| *resource_usage_export_config* | Configure the ResourceUsageExportConfig feature. | <code title="object({ enabled = bool dataset = string })">object({...})</code> | | <code title="{ enabled = null dataset = null }">...</code> |
|
||||
| *vertical_pod_autoscaling* | Enable the Vertical Pod Autoscaling feature. | <code title="">bool</code> | | <code title="">null</code> |
|
||||
| *workload_identity* | Enable the Workload Identity feature. | <code title="">bool</code> | | <code title="">true</code> |
|
||||
| *workload_metadata_config* | Define how to expose node metadata to workloads. | <code title="">string</code> | | <code title="">GKE_METADATA_SERVER</code> |
|
||||
|
||||
## Outputs
|
||||
|
||||
|
|
|
@ -208,6 +208,10 @@ resource "google_container_cluster" "cluster" {
|
|||
}
|
||||
}
|
||||
|
||||
workload_metadata_config {
|
||||
node_metadata = var.workload_metadata_config
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
resource "google_compute_network_peering_routes_config" "gke_master" {
|
||||
|
|
|
@ -245,3 +245,9 @@ variable "workload_identity" {
|
|||
type = bool
|
||||
default = true
|
||||
}
|
||||
|
||||
variable "workload_metadata_config" {
|
||||
description = "Define how to expose node metadata to workloads."
|
||||
type = string
|
||||
default = "GKE_METADATA_SERVER"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue