I’m creating a test consul connect service by setting up a test nginx server with ingress gateway in front of it. I’m deploying through nomad. The deployment completes successfully. Nginx is running fine which I can validate because it’s a default config, listening to 0.0.0.0:80
. However any attempt to use the ingress gateway port 8080 is failing. Am I missing something obvious? Connect is setup and grpc is configured.
job "nginx-test" {
datacenters = ["dc1"]
group "ingress-group" {
network {
mode = "bridge"
port "inbound" {
static = 8080
to = 8080
}
}
service {
name = "nginx-ingress-service"
port = "8080"
connect {
gateway {
proxy {}
ingress {
listener {
port = 8080
protocol = "tcp"
service {
name = "nginx"
}
}
}
}
}
}
}
group "http" {
network {
mode = "bridge"
port "http" {
to = 80
}
}
service {
name = "nginx"
port = "http"
connect {
sidecar_service {}
}
}
task "nginx" {
driver = "docker"
config {
image = "nginx:stable-alpine"
}
}
}
}
I’m deploying on a cluster of 3 shared consul/nomad servers. Encryption is enabled, ca provider is default/consul. ACL is disabled and default intentions for everything are set to “allow.” If I curl the ingress gateway endpoint I’m getting a general “connection refused.”