mirror of
https://github.com/google/nomulus.git
synced 2025-05-03 13:37:51 +02:00
When versions are explicitly set to the latest available version, Annealing almost always fails to apply the patch due to yet-unknown reasons. The rationale for setting the versions explicitly was to ensure that the clusters are always updated in time. But it seems like it is not worth the trouble. Without the explicit latest versions, the master should still be automatic upgrade (may not be immediate after version availability): https://cloud.google.com/kubernetes-engine/versioning-and-upgrades#automatic_master_upgrades We also set "Auto Upgrade" on the nodes, which should upgrades the nodes to master versions (may not be immediate after master version upgrade). So it seems without these lines, we can still expect the gke versions of the cluster to upgrade (eventually). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206408347
40 lines
834 B
HCL
40 lines
834 B
HCL
locals {
|
|
proxy_cluster_zone = "${lookup(var.proxy_cluster_zones, var.proxy_cluster_region)}"
|
|
}
|
|
|
|
resource "google_container_cluster" "proxy_cluster" {
|
|
name = "proxy-cluster-${var.proxy_cluster_region}"
|
|
zone = "${local.proxy_cluster_zone}"
|
|
|
|
timeouts {
|
|
update = "30m"
|
|
}
|
|
|
|
node_pool {
|
|
name = "proxy-node-pool"
|
|
initial_node_count = 1
|
|
|
|
node_config {
|
|
tags = [
|
|
"proxy-cluster",
|
|
]
|
|
|
|
service_account = "${var.proxy_service_account_email}"
|
|
|
|
oauth_scopes = [
|
|
"https://www.googleapis.com/auth/cloud-platform",
|
|
"https://www.googleapis.com/auth/userinfo.email",
|
|
]
|
|
}
|
|
|
|
autoscaling {
|
|
max_node_count = 5
|
|
min_node_count = 1
|
|
}
|
|
|
|
management {
|
|
auto_repair = true
|
|
auto_upgrade = true
|
|
}
|
|
}
|
|
}
|