Hi everyone,
I have a job with two groups:
- My application (used dynamic ports allocated by Nomad). Like this:
network {
mode = "bridge"
port "my_http" {}
}
- Also, I have an ingress group:
group "myapp-ingress" {
count = 1
network {
mode = "bridge"
port "myapp" {
to = <port>
}
}
service {
name = "myapp-ingress-${var.nomad_namespace}"
port = "http"
connect {
gateway {
proxy {}
ingress {
listener {
port = 8080
protocol = "tcp"
service {
name = "myapp-${var.nomad_namespace}"
}
}
}
}
}
}
}
Could I use dynamic port from my application in ingress group? Here:
to = <port>