Files
nomad/command
Seth Hoenig 2a9749c41c connect: enable proxy.passthrough configuration
Enable configuration of HTTP and gRPC endpoints which should be exposed by
the Connect sidecar proxy. This changeset is the first "non-magical" pass
that lays the groundwork for enabling Consul service checks for tasks
running in a network namespace because they are Connect-enabled. The changes
here provide for full configuration of the

  connect {
    sidecar_service {
      proxy {
        expose {
          paths = [{
		path = <exposed endpoint>
                protocol = <http or grpc>
                local_path_port = <local endpoint port>
                listener_port = <inbound mesh port>
	  }, ... ]
       }
    }
  }

stanza. Everything from `expose` and below is new, and partially implements
the precedent set by Consul:
  https://www.consul.io/docs/connect/registration/service-registration.html#expose-paths-configuration-reference

Combined with a task-group level network port-mapping in the form:

  port "exposeExample" { to = -1 }

it is now possible to "punch a hole" through the network namespace
to a specific HTTP or gRPC path, with the anticipated use case of creating
Consul checks on Connect enabled services.

A future PR may introduce more automagic behavior, where we can do things like

1) auto-fill the 'expose.path.local_path_port' with the default value of the
   'service.port' value for task-group level connect-enabled services.

2) automatically generate a port-mapping

3) enable an 'expose.checks' flag which automatically creates exposed endpoints
   for every compatible consul service check (http/grpc checks on connect
   enabled services).
2020-03-31 17:15:27 -06:00
..
2019-11-19 10:36:41 -05:00
2018-03-11 17:43:19 +00:00
2018-05-11 18:05:43 -04:00
2020-01-08 10:44:00 -05:00
2019-05-16 17:06:03 -04:00
2019-04-23 12:50:23 +02:00
2017-07-20 21:24:21 -07:00
2017-07-20 21:24:21 -07:00
CLI
2018-05-07 14:50:01 -05:00
2019-12-16 10:08:17 -05:00
2018-05-21 18:00:14 -05:00
2018-08-14 14:06:04 -04:00
2018-11-08 09:48:43 -06:00
2018-11-08 09:48:43 -06:00
2020-03-21 17:52:49 -04:00
2019-12-16 10:08:17 -05:00
2018-03-11 19:06:15 +00:00
2019-09-09 10:04:41 -07:00
2019-05-13 10:01:19 -04:00
2020-01-02 14:42:27 -08:00
2020-01-02 14:42:27 -08:00
2018-06-14 15:48:01 +02:00
2020-02-16 16:04:59 -06:00
2020-02-16 16:04:59 -06:00
2018-03-21 20:27:32 -07:00
2017-07-20 21:24:21 -07:00
2017-07-20 21:24:21 -07:00
2017-07-20 21:24:21 -07:00
2017-09-19 10:08:23 -05:00
2017-09-19 10:08:23 -05:00
2017-09-19 10:08:23 -05:00
2017-09-19 10:08:23 -05:00
2017-07-20 21:24:21 -07:00
2017-07-20 21:24:21 -07:00
2018-05-11 18:05:43 -04:00
2017-07-20 21:24:21 -07:00