openvidu-deployment: GCP - update variables and disk types to use europe-west2 and hyperdisk-balanced

master
Piwccle 2025-12-15 16:50:52 +01:00
parent bfa690ae56
commit 84b086d076
4 changed files with 11 additions and 11 deletions

View File

@ -9,13 +9,13 @@ variable "projectId" {
variable "region" {
description = "GCP region where resources will be created."
type = string
default = "europe-west1"
default = "europe-west2"
}
variable "zone" {
description = "GCP zone that some resources will use."
type = string
default = "europe-west1-b"
default = "europe-west2-b"
}
variable "stackName" {

View File

@ -142,7 +142,7 @@ resource "google_compute_instance" "openvidu_master_node" {
initialize_params {
image = local.ubuntu_image
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
boot = true
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 {

View File

@ -298,7 +298,7 @@ resource "google_compute_instance" "openvidu_master_node_1" {
initialize_params {
image = local.ubuntu_image
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 {
image = local.ubuntu_image
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 {
image = local.ubuntu_image
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 {
image = local.ubuntu_image
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
boot = true
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 {

View File

@ -9,13 +9,13 @@ variable "projectId" {
variable "region" {
description = "GCP region where resources will be created."
type = string
default = "europe-west1"
default = "europe-west2"
}
variable "zone" {
description = "GCP zone that some resources will use."
type = string
default = "europe-west1-b"
default = "europe-west2-b"
}
variable "stackName" {