mirror of
https://github.com/status-im/infra-swarm.git
synced 2025-02-21 20:08:22 +00:00
specify the root fs size for GC instances
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
9beb34b365
commit
7175b13a30
1
main.tf
1
main.tf
@ -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}"
|
||||
|
@ -54,6 +54,7 @@ resource "google_compute_instance" "host" {
|
||||
boot_disk {
|
||||
initialize_params {
|
||||
image = "${var.image}"
|
||||
size = "${var.disk_size}"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user