work on the node port
This commit is contained in:
+1
-5
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user