open-nomad/e2e/connect/input
Seth Hoenig 8b05efcf88 consul/connect: Add support for Connect terminating gateways
This PR implements Nomad built-in support for running Consul Connect
terminating gateways. Such a gateway can be used by services running
inside the service mesh to access "legacy" services running outside
the service mesh while still making use of Consul's service identity
based networking and ACL policies.

https://www.consul.io/docs/connect/gateways/terminating-gateway

These gateways are declared as part of a task group level service
definition within the connect stanza.

service {
  connect {
    gateway {
      proxy {
        // envoy proxy configuration
      }
      terminating {
        // terminating-gateway configuration entry
      }
    }
  }
}

Currently Envoy is the only supported gateway implementation in
Consul. The gateay task can be customized by configuring the
connect.sidecar_task block.

When the gateway.terminating field is set, Nomad will write/update
the Configuration Entry into Consul on job submission. Because CEs
are global in scope and there may be more than one Nomad cluster
communicating with Consul, there is an assumption that any terminating
gateway defined in Nomad for a particular service will be the same
among Nomad clusters.

Gateways require Consul 1.8.0+, checked by a node constraint.

Closes #9445
2021-01-25 10:36:04 -06:00
..
demo.nomad e2e: set an expose service check in connect e2e testcase 2020-05-07 14:40:03 -06:00
ingress-gateway.nomad e2e: add e2e test for consul connect ingress gateway demo 2020-11-25 16:54:02 -06:00
multi-ingress.nomad consul/connect: Enable running multiple ingress gateways per Nomad agent 2021-01-19 12:58:36 -06:00
multi-service.nomad fix tests, update changelog 2020-01-29 13:55:39 -05:00
native-demo.nomad e2e: add tests for connect native 2020-07-01 15:54:28 -05:00
terminating-gateway.nomad consul/connect: Add support for Connect terminating gateways 2021-01-25 10:36:04 -06:00