mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
Add support for LB in upcloud private zone (#11260)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -6,6 +6,14 @@ variable "zone" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "private_cloud" {
|
||||
type = bool
|
||||
}
|
||||
|
||||
variable "public_zone" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "template_name" {}
|
||||
|
||||
variable "username" {}
|
||||
|
||||
Reference in New Issue
Block a user