deploy The Hive master node and 3 slave nodes for storage

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-10-07 16:42:55 +02:00
parent e1e2a3f98c
commit bacb5dd068
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 27 additions and 0 deletions

27
hosts.tf Normal file
View File

@ -0,0 +1,27 @@
/* Frontend application */
module "hive_master" {
source = "github.com/status-im/infra-tf-google-cloud"
host_count = 1
name = "master"
env = "thehive"
group = "thehive-master"
type = "n1-standard-2"
root_vol_size = 40
domain = var.hosts_domain
/* Application Web UI */
open_tcp_ports = [ "80", "443" ]
}
/* Backend storage */
module "hive_slave" {
source = "github.com/status-im/infra-tf-google-cloud"
host_count = 3
name = "slave"
env = "thehive"
group = "thehive-slave"
type = "n1-standard-4"
root_vol_size = 30
data_vol_size = 30
domain = var.hosts_domain
}