mirror of https://github.com/OpenVidu/openvidu.git
openvidu-deployment: GCP - update variables and disk types to use europe-west2 and hyperdisk-balanced
parent
bfa690ae56
commit
84b086d076
|
|
@ -9,13 +9,13 @@ variable "projectId" {
|
||||||
variable "region" {
|
variable "region" {
|
||||||
description = "GCP region where resources will be created."
|
description = "GCP region where resources will be created."
|
||||||
type = string
|
type = string
|
||||||
default = "europe-west1"
|
default = "europe-west2"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "zone" {
|
variable "zone" {
|
||||||
description = "GCP zone that some resources will use."
|
description = "GCP zone that some resources will use."
|
||||||
type = string
|
type = string
|
||||||
default = "europe-west1-b"
|
default = "europe-west2-b"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "stackName" {
|
variable "stackName" {
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,7 @@ resource "google_compute_instance" "openvidu_master_node" {
|
||||||
initialize_params {
|
initialize_params {
|
||||||
image = local.ubuntu_image
|
image = local.ubuntu_image
|
||||||
size = 100
|
size = 100
|
||||||
type = local.is_c4a_instance ? "pd-ssd" : "pd-standard"
|
type = local.is_c4a_instance ? "hyperdisk-balanced" : "pd-standard"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -205,7 +205,7 @@ resource "google_compute_instance_template" "media_node_template" {
|
||||||
auto_delete = true
|
auto_delete = true
|
||||||
boot = true
|
boot = true
|
||||||
disk_size_gb = 100
|
disk_size_gb = 100
|
||||||
disk_type = local.is_c4a_instance_media ? "pd-ssd" : "pd-standard"
|
disk_type = local.is_c4a_instance_media ? "hyperdisk-balanced" : "pd-standard"
|
||||||
}
|
}
|
||||||
|
|
||||||
network_interface {
|
network_interface {
|
||||||
|
|
|
||||||
|
|
@ -298,7 +298,7 @@ resource "google_compute_instance" "openvidu_master_node_1" {
|
||||||
initialize_params {
|
initialize_params {
|
||||||
image = local.ubuntu_image
|
image = local.ubuntu_image
|
||||||
size = var.masterNodesDiskSize
|
size = var.masterNodesDiskSize
|
||||||
type = local.is_c4a_instance ? "pd-ssd" : "pd-standard"
|
type = local.is_c4a_instance ? "hyperdisk-balanced" : "pd-standard"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -351,7 +351,7 @@ resource "google_compute_instance" "openvidu_master_node_2" {
|
||||||
initialize_params {
|
initialize_params {
|
||||||
image = local.ubuntu_image
|
image = local.ubuntu_image
|
||||||
size = var.masterNodesDiskSize
|
size = var.masterNodesDiskSize
|
||||||
type = local.is_c4a_instance ? "pd-ssd" : "pd-standard"
|
type = local.is_c4a_instance ? "hyperdisk-balanced" : "pd-standard"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -406,7 +406,7 @@ resource "google_compute_instance" "openvidu_master_node_3" {
|
||||||
initialize_params {
|
initialize_params {
|
||||||
image = local.ubuntu_image
|
image = local.ubuntu_image
|
||||||
size = var.masterNodesDiskSize
|
size = var.masterNodesDiskSize
|
||||||
type = local.is_c4a_instance ? "pd-ssd" : "pd-standard"
|
type = local.is_c4a_instance ? "hyperdisk-balanced" : "pd-standard"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -461,7 +461,7 @@ resource "google_compute_instance" "openvidu_master_node_4" {
|
||||||
initialize_params {
|
initialize_params {
|
||||||
image = local.ubuntu_image
|
image = local.ubuntu_image
|
||||||
size = var.masterNodesDiskSize
|
size = var.masterNodesDiskSize
|
||||||
type = local.is_c4a_instance ? "pd-ssd" : "pd-standard"
|
type = local.is_c4a_instance ? "hyperdisk-balanced" : "pd-standard"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -858,7 +858,7 @@ resource "google_compute_instance_template" "media_node_template" {
|
||||||
auto_delete = true
|
auto_delete = true
|
||||||
boot = true
|
boot = true
|
||||||
disk_size_gb = 100
|
disk_size_gb = 100
|
||||||
disk_type = local.is_c4a_instance_media ? "pd-ssd" : "pd-standard"
|
disk_type = local.is_c4a_instance_media ? "hyperdisk-balanced" : "pd-standard"
|
||||||
}
|
}
|
||||||
|
|
||||||
network_interface {
|
network_interface {
|
||||||
|
|
|
||||||
|
|
@ -9,13 +9,13 @@ variable "projectId" {
|
||||||
variable "region" {
|
variable "region" {
|
||||||
description = "GCP region where resources will be created."
|
description = "GCP region where resources will be created."
|
||||||
type = string
|
type = string
|
||||||
default = "europe-west1"
|
default = "europe-west2"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "zone" {
|
variable "zone" {
|
||||||
description = "GCP zone that some resources will use."
|
description = "GCP zone that some resources will use."
|
||||||
type = string
|
type = string
|
||||||
default = "europe-west1-b"
|
default = "europe-west2-b"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "stackName" {
|
variable "stackName" {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue