specify the root fs size for GC instances

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2018-09-02 23:50:33 -04:00
parent 9beb34b365
commit 7175b13a30
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
3 changed files with 7 additions and 0 deletions

View File

@ -48,6 +48,7 @@ module "swarm" {
/* scaling options */
count = "${local.ws["hosts_count"]}"
do_size = "s-1vcpu-2gb"
gc_size = "n1-standard-1"
/* general */
env = "${var.env}"
domain = "${var.domain}"

View File

@ -54,6 +54,7 @@ resource "google_compute_instance" "host" {
boot_disk {
initialize_params {
image = "${var.image}"
size = "${var.disk_size}"
}
}

View File

@ -26,6 +26,11 @@ variable image {
default = "ubuntu-os-cloud/ubuntu-1804-lts"
}
variable disk_size {
description = "Size in GB of the root filesystem."
default = 50
}
variable provider {
description = "Short name of the provider used."
/* Google Cloud */