open-nomad/client/allocdir
Seth Hoenig 2511f48351 consul/connect: add support for bridge networks with connect native tasks
Before, Connect Native Tasks needed one of these to work:

- To be run in host networking mode
- To have the Consul agent configured to listen to a unix socket
- To have the Consul agent configured to listen to a public interface

None of these are a great experience, though running in host networking is
still the best solution for non-Linux hosts. This PR establishes a connection
proxy between the Consul HTTP listener and a unix socket inside the alloc fs,
bypassing the network namespace for any Connect Native task. Similar to and
re-uses a bunch of code from the gRPC listener version for envoy sidecar proxies.

Proxy is established only if the alloc is configured for bridge networking and
there is at least one Connect Native task in the Task Group.

Fixes #8290
2020-07-29 09:26:01 -05:00
..
input Test file for detect content type that satisfies linter and encoding 2019-07-10 11:42:04 -05:00
alloc_dir.go consul/connect: add support for bridge networks with connect native tasks 2020-07-29 09:26:01 -05:00
alloc_dir_test.go Added additional test cases and fixed go test case 2019-07-02 13:25:29 -05:00
fs_darwin.go Set ownership on directories in chroot 2017-04-17 12:41:33 -07:00
fs_freebsd.go Set ownership on directories in chroot 2017-04-17 12:41:33 -07:00
fs_linux.go Set ownership on directories in chroot 2017-04-17 12:41:33 -07:00
fs_linux_test.go non-Existent -> nonexistent 2018-03-12 11:59:33 -07:00
fs_solaris.go Set ownership on directories in chroot 2017-04-17 12:41:33 -07:00
fs_unix.go Set ownership on directories in chroot 2017-04-17 12:41:33 -07:00
fs_windows.go Run Linux Images (LCOW) and Windows Containers side by side (#7850) 2020-05-04 13:08:47 -04:00
task_dir.go remove always false parameter 2019-01-08 09:11:47 -05:00
task_dir_linux.go driver: add pre09 migration logic 2019-01-18 18:31:01 -05:00
task_dir_nonlinux.go driver: add pre09 migration logic 2019-01-18 18:31:01 -05:00
task_dir_test.go remove always false parameter 2019-01-08 09:11:47 -05:00
testing.go connect: add unix socket to proxy grpc for envoy (#6232) 2019-09-03 08:43:38 -07:00