Skip to content

Commit 8e14762

Browse files
authored
feat: Enable GKE_METADATA_SERVER as default node_metadata for beta-clusters (#490) (#512)
BREAKING CHANGE: Beta clusters have changed the default to use the GKE_METADATA_SERVER, to use the old option set `node_metadata = "SECURE"`.
1 parent 7c31f51 commit 8e14762

File tree

13 files changed

+23
-20
lines changed

13 files changed

+23
-20
lines changed

autogen/main/variables.tf.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ variable "pod_security_policy_config" {
454454

455455
variable "node_metadata" {
456456
description = "Specifies how node metadata is exposed to the workload running on the node"
457-
default = "SECURE"
457+
default = "GKE_METADATA_SERVER"
458458
type = string
459459
}
460460

examples/simple_regional_beta/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ This example illustrates how to create a simple cluster with beta features.
1818
| ip\_range\_services | The secondary ip range to use for services | string | n/a | yes |
1919
| istio | Boolean to enable / disable Istio | string | `"true"` | no |
2020
| network | The VPC network to host the cluster in | string | n/a | yes |
21-
| node\_metadata | Specifies how node metadata is exposed to the workload running on the node | string | `"SECURE"` | no |
2221
| node\_pools | List of maps containing node pools | list(map(string)) | `<list>` | no |
2322
| pod\_security\_policy\_config | enabled - Enable the PodSecurityPolicy controller for this cluster. If enabled, pods must be valid under a PodSecurityPolicy to be created. | list | `<list>` | no |
2423
| project\_id | The project ID to host the cluster in | string | n/a | yes |

examples/simple_regional_beta/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ module "gke" {
4040
cloudrun = var.cloudrun
4141
dns_cache = var.dns_cache
4242
gce_pd_csi_driver = var.gce_pd_csi_driver
43-
node_metadata = var.node_metadata
4443
sandbox_enabled = var.sandbox_enabled
4544
remove_default_node_pool = var.remove_default_node_pool
4645
node_pools = var.node_pools

examples/simple_regional_beta/variables.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,6 @@ variable "gce_pd_csi_driver" {
6969
default = false
7070
}
7171

72-
variable "node_metadata" {
73-
description = "Specifies how node metadata is exposed to the workload running on the node"
74-
default = "SECURE"
75-
type = string
76-
}
77-
7872
variable "sandbox_enabled" {
7973
type = bool
8074
description = "(Beta) Enable GKE Sandbox (Do not forget to set `image_type` = `COS_CONTAINERD` and `node_version` = `1.12.7-gke.17` or later to use it)."

modules/beta-private-cluster-update-variant/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ Then perform the following commands on the root folder:
209209
| network\_policy | Enable network policy addon | bool | `"true"` | no |
210210
| network\_policy\_provider | The network policy provider. | string | `"CALICO"` | no |
211211
| network\_project\_id | The project ID of the shared VPC's host (for shared vpc support) | string | `""` | no |
212-
| node\_metadata | Specifies how node metadata is exposed to the workload running on the node | string | `"SECURE"` | no |
212+
| node\_metadata | Specifies how node metadata is exposed to the workload running on the node | string | `"GKE_METADATA_SERVER"` | no |
213213
| node\_pools | List of maps containing node pools | list(map(string)) | `<list>` | no |
214214
| node\_pools\_labels | Map of maps containing node labels by node-pool name | map(map(string)) | `<map>` | no |
215215
| node\_pools\_metadata | Map of maps containing node metadata by node-pool name | map(map(string)) | `<map>` | no |

modules/beta-private-cluster-update-variant/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ variable "pod_security_policy_config" {
447447

448448
variable "node_metadata" {
449449
description = "Specifies how node metadata is exposed to the workload running on the node"
450-
default = "SECURE"
450+
default = "GKE_METADATA_SERVER"
451451
type = string
452452
}
453453

modules/beta-private-cluster/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ Then perform the following commands on the root folder:
187187
| network\_policy | Enable network policy addon | bool | `"true"` | no |
188188
| network\_policy\_provider | The network policy provider. | string | `"CALICO"` | no |
189189
| network\_project\_id | The project ID of the shared VPC's host (for shared vpc support) | string | `""` | no |
190-
| node\_metadata | Specifies how node metadata is exposed to the workload running on the node | string | `"SECURE"` | no |
190+
| node\_metadata | Specifies how node metadata is exposed to the workload running on the node | string | `"GKE_METADATA_SERVER"` | no |
191191
| node\_pools | List of maps containing node pools | list(map(string)) | `<list>` | no |
192192
| node\_pools\_labels | Map of maps containing node labels by node-pool name | map(map(string)) | `<map>` | no |
193193
| node\_pools\_metadata | Map of maps containing node metadata by node-pool name | map(map(string)) | `<map>` | no |

modules/beta-private-cluster/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ variable "pod_security_policy_config" {
447447

448448
variable "node_metadata" {
449449
description = "Specifies how node metadata is exposed to the workload running on the node"
450-
default = "SECURE"
450+
default = "GKE_METADATA_SERVER"
451451
type = string
452452
}
453453

modules/beta-public-cluster/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Then perform the following commands on the root folder:
165165
| network\_policy | Enable network policy addon | bool | `"true"` | no |
166166
| network\_policy\_provider | The network policy provider. | string | `"CALICO"` | no |
167167
| network\_project\_id | The project ID of the shared VPC's host (for shared vpc support) | string | `""` | no |
168-
| node\_metadata | Specifies how node metadata is exposed to the workload running on the node | string | `"SECURE"` | no |
168+
| node\_metadata | Specifies how node metadata is exposed to the workload running on the node | string | `"GKE_METADATA_SERVER"` | no |
169169
| node\_pools | List of maps containing node pools | list(map(string)) | `<list>` | no |
170170
| node\_pools\_labels | Map of maps containing node labels by node-pool name | map(map(string)) | `<map>` | no |
171171
| node\_pools\_metadata | Map of maps containing node metadata by node-pool name | map(map(string)) | `<map>` | no |

modules/beta-public-cluster/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ variable "pod_security_policy_config" {
423423

424424
variable "node_metadata" {
425425
description = "Specifies how node metadata is exposed to the workload running on the node"
426-
default = "SECURE"
426+
default = "GKE_METADATA_SERVER"
427427
type = string
428428
}
429429

0 commit comments

Comments
 (0)