Skip to content

Commit 640de08

Browse files
authored
Merge pull request #117 from thefirstofthe300/ds/upgrade-guide
[ci skip] Add upgrade guide and update documentation
2 parents d214638 + 50c68b7 commit 640de08

File tree

6 files changed

+22
-3
lines changed

6 files changed

+22
-3
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,20 @@ Then perform the following commands on the root folder:
8989
- `terraform apply` to apply the infrastructure build
9090
- `terraform destroy` to destroy the built infrastructure
9191

92+
## Upgrade to v1.0.0
93+
94+
Version 1.0.0 of this module introduces a breaking change: adding the `disable-legacy-endpoints` metadata field to all node pools. This metadata is required by GKE and [determines whether the `/0.1/` and `/v1beta1/` paths are available in the nodes' metadata server](https://cloud.google.com/kubernetes-engine/docs/how-to/protecting-cluster-metadata#disable-legacy-apis). If your applications do not require access to the node's metadata server, you can leave the default value of `true` provided by the module. If your applications require access to the metadata server, be sure to read the linked documentation to see if you need to set the value for this field to `false` to allow your applications access to the above metadata server paths.
95+
96+
In either case, upgrading to module version `v1.0.0` will trigger a recreation of all node pools in the cluster.
97+
9298
[^]: (autogen_docs_start)
9399

94100
## Inputs
95101

96102
| Name | Description | Type | Default | Required |
97103
|------|-------------|:----:|:-----:|:-----:|
98104
| description | The description of the cluster | string | `""` | no |
105+
| disable\_legacy\_metadata\_endpoints | Disable the /0.1/ and /v1beta1/ metadata server endpoints on the node. Changing this value will cause all node pools to be recreated. | string | `"true"` | no |
99106
| horizontal\_pod\_autoscaling | Enable horizontal pod autoscaling addon | string | `"true"` | no |
100107
| http\_load\_balancing | Enable httpload balancer addon | string | `"true"` | no |
101108
| ip\_masq\_link\_local | Whether to masquerade traffic to the link-local prefix (169.254.0.0/16). | string | `"false"` | no |

autogen/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ Then perform the following commands on the root folder:
9595
- `terraform apply` to apply the infrastructure build
9696
- `terraform destroy` to destroy the built infrastructure
9797

98+
## Upgrade to v1.0.0
99+
100+
Version 1.0.0 of this module introduces a breaking change: adding the `disable-legacy-endpoints` metadata field to all node pools. This metadata is required by GKE and [determines whether the `/0.1/` and `/v1beta1/` paths are available in the nodes' metadata server](https://cloud.google.com/kubernetes-engine/docs/how-to/protecting-cluster-metadata#disable-legacy-apis). If your applications do not require access to the node's metadata server, you can leave the default value of `true` provided by the module. If your applications require access to the metadata server, be sure to read the linked documentation to see if you need to set the value for this field to `false` to allow your applications access to the above metadata server paths.
101+
102+
In either case, upgrading to module version `v1.0.0` will trigger a recreation of all node pools in the cluster.
103+
98104
[^]: (autogen_docs_start)
99105
[^]: (autogen_docs_end)
100106

autogen/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ data "google_container_engine_versions" "region" {
157157
}
158158

159159
data "google_container_engine_versions" "zone" {
160-
provider = "google-beta"
161160
// Work around to prevent a lack of zone declaration from causing regional cluster creation from erroring out due to error
162161
//
163162
// data.google_container_engine_versions.zone: Cannot determine zone: set in this resource, or set provider-level zone.

modules/private-cluster/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,20 @@ Then perform the following commands on the root folder:
9292
- `terraform apply` to apply the infrastructure build
9393
- `terraform destroy` to destroy the built infrastructure
9494

95+
## Upgrade to v1.0.0
96+
97+
Version 1.0.0 of this module introduces a breaking change: adding the `disable-legacy-endpoints` metadata field to all node pools. This metadata is required by GKE and [determines whether the `/0.1/` and `/v1beta1/` paths are available in the nodes' metadata server](https://cloud.google.com/kubernetes-engine/docs/how-to/protecting-cluster-metadata#disable-legacy-apis). If your applications do not require access to the node's metadata server, you can leave the default value of `true` provided by the module. If your applications require access to the metadata server, be sure to read the linked documentation to see if you need to set the value for this field to `false` to allow your applications access to the above metadata server paths.
98+
99+
In either case, upgrading to module version `v1.0.0` will trigger a recreation of all node pools in the cluster.
100+
95101
[^]: (autogen_docs_start)
96102

97103
## Inputs
98104

99105
| Name | Description | Type | Default | Required |
100106
|------|-------------|:----:|:-----:|:-----:|
101107
| description | The description of the cluster | string | `""` | no |
108+
| disable\_legacy\_metadata\_endpoints | Disable the /0.1/ and /v1beta1/ metadata server endpoints on the node. Changing this value will cause all node pools to be recreated. | string | `"true"` | no |
102109
| enable\_private\_endpoint | (Beta) Whether the master's internal IP address is used as the cluster endpoint | string | `"false"` | no |
103110
| enable\_private\_nodes | (Beta) Whether nodes have internal IP addresses only | string | `"false"` | no |
104111
| horizontal\_pod\_autoscaling | Enable horizontal pod autoscaling addon | string | `"true"` | no |

modules/private-cluster/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ variable "remove_default_node_pool" {
126126

127127
variable "disable_legacy_metadata_endpoints" {
128128
description = "Disable the /0.1/ and /v1beta1/ metadata server endpoints on the node. Changing this value will cause all node pools to be recreated."
129-
default = true
129+
default = "true"
130130
}
131131

132132

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ variable "remove_default_node_pool" {
126126

127127
variable "disable_legacy_metadata_endpoints" {
128128
description = "Disable the /0.1/ and /v1beta1/ metadata server endpoints on the node. Changing this value will cause all node pools to be recreated."
129-
default = true
129+
default = "true"
130130
}
131131

132132

0 commit comments

Comments
 (0)