Add region to gcp instance template resource

* Configure the regional worker instance templates with the
region of the cluster. This defaults to the provider's region
which isn't always what you want and if left off causes an error
* Close #1512
This commit is contained in:
Dalton Hubble 2024-10-08 21:25:06 -07:00
parent e6989514a5
commit 6a5b808b17
No known key found for this signature in database
GPG Key ID: BD34C2E3EF32B7A0
3 changed files with 5 additions and 0 deletions

View File

@ -4,12 +4,15 @@ Notable changes between versions.
## Latest
## v1.31.1
* Kubernetes [v1.31.1](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.31.md#v1311)
* Update flannel from v0.25.5 to [v0.25.6](https://github.com/flannel-io/flannel/releases/tag/v0.25.6)
### Google
* Add `controller_disk_type` and `worker_disk_type` variables ([#1513](https://github.com/poseidon/typhoon/pull/1513))
* Add explicit `region` field to regional worker instance templates ([#1524](https://github.com/poseidon/typhoon/pull/1524))
## v1.31.0

View File

@ -62,6 +62,7 @@ resource "google_compute_region_instance_template" "worker" {
name_prefix = "${var.name}-worker-"
description = "${var.name} worker instance template"
machine_type = var.machine_type
region = var.region
metadata = {
user-data = data.ct_config.worker.rendered

View File

@ -62,6 +62,7 @@ resource "google_compute_region_instance_template" "worker" {
name_prefix = "${var.name}-worker-"
description = "Worker Instance template"
machine_type = var.machine_type
region = var.region
metadata = {
user-data = data.ct_config.worker.rendered