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:
parent
fbe36b8b16
commit
734c8c2107
|
@ -56,6 +56,7 @@ resource "google_compute_instance" "controllers" {
|
|||
}
|
||||
|
||||
can_ip_forward = true
|
||||
allow_stopping_for_update = true
|
||||
tags = ["${var.cluster_name}-controller"]
|
||||
|
||||
lifecycle {
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue