2511f48351
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 |
||
---|---|---|
.. | ||
input | ||
alloc_dir.go | ||
alloc_dir_test.go | ||
fs_darwin.go | ||
fs_freebsd.go | ||
fs_linux.go | ||
fs_linux_test.go | ||
fs_solaris.go | ||
fs_unix.go | ||
fs_windows.go | ||
task_dir.go | ||
task_dir_linux.go | ||
task_dir_nonlinux.go | ||
task_dir_test.go | ||
testing.go |