swarmkit
swarmkit copied to clipboard
Add multi-container tasks to share namespaces within services
I am wondering if a tasks can be redefined as not only tied to one container but multiple, which are able to share namespaces (like Kubernetes PODS)?
This would allow for a proxy container (e.g. lyft/envoy, nginx) to do its magic like TLS termination,logging,tracing,... communicating via localhost to a service providing container service.
version: '4'
services:
http:
group:
shared-namespaces: [network]
components:
web:
# service only serving on 127.0.0.1
image: nginx
proxy:
# service proxying 127.0.0.1:80 to 0.0.0.0:8080
image: envoy
ports: [8080:8080]
I'd still love to see this feature added 🥺
I would love this as well. It's actually the one and only killer feature that Swarm lacks ...