Merge pull request #334 from rosmo/change-gke-metadata
Fix deprecation in gke-nodepool
This commit is contained in:
commit
93317b4606
|
@ -69,7 +69,7 @@ module "cluster-1-nodepool-1" {
|
|||
| *node_tags* | Network tags applied to nodes. | <code title="list(string)">list(string)</code> | | <code title="">null</code> |
|
||||
| *node_taints* | Kubernetes taints applied to nodes. E.g. type=blue:NoSchedule | <code title="list(string)">list(string)</code> | | <code title="">[]</code> |
|
||||
| *upgrade_config* | Optional node upgrade configuration. | <code title="object({ max_surge = number max_unavailable = number })">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
|
||||
|
||||
|
|
|
@ -126,7 +126,7 @@ resource "google_container_node_pool" "nodepool" {
|
|||
}
|
||||
|
||||
workload_metadata_config {
|
||||
node_metadata = var.workload_metadata_config
|
||||
mode = var.workload_metadata_config
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -208,5 +208,5 @@ variable "upgrade_config" {
|
|||
variable "workload_metadata_config" {
|
||||
description = "Metadata configuration to expose to workloads on the node pool."
|
||||
type = string
|
||||
default = "GKE_METADATA_SERVER"
|
||||
default = "GKE_METADATA"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue