add to GKE cluster module

This commit is contained in:
Ludovico Magnocavallo
2020-04-27 09:16:45 +02:00
parent bce602f7f7
commit df0b4c532a
4 changed files with 12 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ module "cluster-1" {
| *resource_usage_export_config* | Configure the ResourceUsageExportConfig feature. | <code title="object&#40;&#123;&#10;enabled &#61; bool&#10;dataset &#61; string&#10;&#125;&#41;">object({...})</code> | | <code title="&#123;&#10;enabled &#61; null&#10;dataset &#61; null&#10;&#125;">...</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

View File

@@ -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" {

View File

@@ -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"
}