moby / swarmkit

A toolkit for orchestrating distributed systems at any scale. It includes primitives for node discovery, raft-based consensus, task scheduling and more.
Apache License 2.0
3.38k stars 616 forks source link

Add multi-container tasks to share namespaces within services #2291

Open ChristianKniep opened 7 years ago

ChristianKniep commented 7 years ago

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]
cecilphillip commented 4 years ago

I'd still love to see this feature added 🥺

bquenin commented 3 years ago

I would love this as well. It's actually the one and only killer feature that Swarm lacks ...