Health checking a Consul Terminating Gateway through Nomad

Hello,

I’ve started a Terminating-Gateway through Nomad job. Here is my example Nomad Job definition:

job "terminating-gateway" {
  datacenters = ["dc1"]
  namespace   = "terminating-gateway"

  group "gateway" {
    count = 1
    network {
      mode = "bridge"
    }

    service {
      name = "terminating-gateway"

      connect {
        gateway {
          proxy {}
          terminating {
            // list of services
        }
      }
    }
  }
}

I’m wondering how I can set up a check stanza in the service section so so that the Consul can run health checks against the Envoy (so the terminating gateway).

I already found the admin /ready endpoint that I could potentially use for the readiness probe, but the admin panel is exposed on 127.0.0.2:19000, so it is not available from the host machine. I’m wondering if there is any native solution for that or docs on how to set up readiness probe for TEGW

Thanks for any comments or suggestions