mirror of
https://github.com/FlipsideCrypto/convox.git
synced 2026-02-06 10:56:56 +00:00
gcp: cluster autoscaling (#39)
* enable autoscaling on GCP by default * formatting
This commit is contained in:
parent
d91ee9cef0
commit
9657116950
@ -63,10 +63,15 @@ resource "google_container_cluster" "rack" {
|
||||
resource "google_container_node_pool" "rack" {
|
||||
provider = "google-beta"
|
||||
|
||||
name = "${google_container_cluster.rack.name}-nodes-${var.node_type}"
|
||||
location = google_container_cluster.rack.location
|
||||
cluster = google_container_cluster.rack.name
|
||||
node_count = 1
|
||||
name = "${google_container_cluster.rack.name}-nodes-${var.node_type}"
|
||||
location = google_container_cluster.rack.location
|
||||
cluster = google_container_cluster.rack.name
|
||||
initial_node_count = 1
|
||||
|
||||
autoscaling {
|
||||
min_node_count = 1
|
||||
max_node_count = 1000
|
||||
}
|
||||
|
||||
node_config {
|
||||
preemptible = true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user