Allow stopping Google Cloud controller nodes to resize them (#1424)

* Google Cloud requires VMs be stopped in order to update their properties. This is only allowed if explicitly enabled
This commit is contained in:
8ball030 2024-03-22 18:23:00 +00:00 committed by GitHub
parent fbe36b8b16
commit 734c8c2107
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,7 @@ resource "google_compute_instance" "controllers" {
}
can_ip_forward = true
allow_stopping_for_update = true
tags = ["${var.cluster_name}-controller"]
lifecycle {

View File

@ -33,6 +33,7 @@ resource "google_compute_instance" "controllers" {
# use a zone in the region and wrap around (e.g. controllers > zones)
zone = element(local.zones, count.index)
machine_type = var.controller_type
allow_stopping_for_update = true
metadata = {
user-data = data.ct_config.controllers.*.rendered[count.index]