From de81eb1e0910d715a366c28557a44c6b97d709b8 Mon Sep 17 00:00:00 2001 From: pierre geeraert Date: Mon, 12 Oct 2026 00:04:24 +0100 Subject: [PATCH] work on the node port --- core/services.tf | 6 +----- core/variables.auto.tfvars | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/core/services.tf b/core/services.tf index a6e4480..a18d8b9 100644 --- a/core/services.tf +++ b/core/services.tf @@ -23,14 +23,10 @@ resource "kubernetes_service_v1" "automatic_service" { port = port.value target_port = port.value name = replace("${port.value}${each.key}", "/(.{0,15})(.*)/", "$1") - + node_port = port.value } } - # port { - # port = each.value.service_port - # target_port = each.value.service_port - # } type = each.value.service_type diff --git a/core/variables.auto.tfvars b/core/variables.auto.tfvars index c994a9c..f7231af 100644 --- a/core/variables.auto.tfvars +++ b/core/variables.auto.tfvars @@ -102,6 +102,7 @@ kubernetes = { image = "ealen/echo-server:latest" service_port = [4580] external_port = true + service_type = "NodePort" #command = ["-text=Hello authenticated world!"] pvc = { echo-config = {