Merge pull request #334 from rosmo/change-gke-metadata

Fix deprecation in gke-nodepool
This commit is contained in:
Taneli Leppä 2021-10-21 12:09:41 +02:00 committed by GitHub
commit 93317b4606
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ module "cluster-1-nodepool-1" {
| *node_tags* | Network tags applied to nodes. | <code title="list&#40;string&#41;">list(string)</code> | | <code title="">null</code> | | *node_tags* | Network tags applied to nodes. | <code title="list&#40;string&#41;">list(string)</code> | | <code title="">null</code> |
| *node_taints* | Kubernetes taints applied to nodes. E.g. type=blue:NoSchedule | <code title="list&#40;string&#41;">list(string)</code> | | <code title="">[]</code> | | *node_taints* | Kubernetes taints applied to nodes. E.g. type=blue:NoSchedule | <code title="list&#40;string&#41;">list(string)</code> | | <code title="">[]</code> |
| *upgrade_config* | Optional node upgrade configuration. | <code title="object&#40;&#123;&#10;max_surge &#61; number&#10;max_unavailable &#61; number&#10;&#125;&#41;">object({...})</code> | | <code title="">null</code> | | *upgrade_config* | Optional node upgrade configuration. | <code title="object&#40;&#123;&#10;max_surge &#61; number&#10;max_unavailable &#61; number&#10;&#125;&#41;">object({...})</code> | | <code title="">null</code> |
| *workload_metadata_config* | Metadata configuration to expose to workloads on the node pool. | <code title="">string</code> | | <code title="">GKE_METADATA_SERVER</code> | | *workload_metadata_config* | Metadata configuration to expose to workloads on the node pool. | <code title="">string</code> | | <code title="">GKE_METADATA</code> |
## Outputs ## Outputs

View File

@ -126,7 +126,7 @@ resource "google_container_node_pool" "nodepool" {
} }
workload_metadata_config { workload_metadata_config {
node_metadata = var.workload_metadata_config mode = var.workload_metadata_config
} }
} }

View File

@ -208,5 +208,5 @@ variable "upgrade_config" {
variable "workload_metadata_config" { variable "workload_metadata_config" {
description = "Metadata configuration to expose to workloads on the node pool." description = "Metadata configuration to expose to workloads on the node pool."
type = string type = string
default = "GKE_METADATA_SERVER" default = "GKE_METADATA"
} }