Add variable to decide wether the ssh-port of the k8s-server is exposed

This commit is contained in:
2025-09-14 15:22:10 +02:00
parent 8797fad6d7
commit 998426c330
2 changed files with 7 additions and 2 deletions

View File

@@ -45,8 +45,8 @@ module "k8s" {
location = "fsn1"
count = 1
}]
kubernetes_exposed_ips = values(data.external.my_ip.result)
ssh_exposed_ips = values(data.external.my_ip.result)
kubernetes_exposed_ips = var.expose_kubernetes_and_ssh_ports ? values(data.external.my_ip.result) : []
ssh_exposed_ips = var.expose_kubernetes_and_ssh_ports ? values(data.external.my_ip.result) : []
public_tcp_services = {
http = ["80", "443"]
}