Add support for LB in upcloud private zone (#11260)

This commit is contained in:
David
2024-08-01 06:58:30 +02:00
committed by GitHub
parent 8d497b49a6
commit 2799f11475
5 changed files with 29 additions and 4 deletions

View File

@@ -515,7 +515,7 @@ resource "upcloud_loadbalancer" "lb" {
configured_status = "started"
name = "${local.resource-prefix}lb"
plan = var.loadbalancer_plan
zone = var.zone
zone = var.private_cloud ? var.public_zone : var.zone
networks {
name = "Private-Net"
type = "private"

View File

@@ -6,6 +6,14 @@ variable "zone" {
type = string
}
variable "private_cloud" {
type = bool
}
variable "public_zone" {
type = string
}
variable "template_name" {}
variable "username" {}