work on the node port

This commit is contained in:
pierre geeraert
2026-10-12 00:04:24 +01:00
parent d720f66322
commit de81eb1e09
2 changed files with 2 additions and 5 deletions
+1 -5
View File
@@ -23,14 +23,10 @@ resource "kubernetes_service_v1" "automatic_service" {
port = port.value port = port.value
target_port = port.value target_port = port.value
name = replace("${port.value}${each.key}", "/(.{0,15})(.*)/", "$1") 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 type = each.value.service_type
+1
View File
@@ -102,6 +102,7 @@ kubernetes = {
image = "ealen/echo-server:latest" image = "ealen/echo-server:latest"
service_port = [4580] service_port = [4580]
external_port = true external_port = true
service_type = "NodePort"
#command = ["-text=Hello authenticated world!"] #command = ["-text=Hello authenticated world!"]
pvc = { pvc = {
echo-config = { echo-config = {