You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Marc Roos <M....@f1-outsourcing.eu> on 2019/04/08 18:52:13 UTC

host route to container namespace ip

If I start a container with this container network [0] the routes are 
created within the container. But my slave/agent runs on a different ip. 
So I need to create a route on the host to the container namespace ip. 
Something like this 'ip route del 192.168.122.175/32 dev tun1macvtap0'

What/where should I configure this route on the host? Is this even 
possible? 



[0]
{
  "name": "test-macvtap",
  "type": "macvtap",
  "master": "tun1",
  "ipam": {
    "type": "host-local",
    "subnet": "192.168.122.0/24",
    "rangeStart": "192.168.122.171",
    "rangeEnd": "192.168.122.179",
    "routes": [
                { "dst": "192.168.10.114/32", "gw": "0.0.0.0" },
                { "dst": "0.0.0.0/0", "gw": "192.168.122.1" }
  ] },
  "dns": { "nameservers": ["212.26.193.10"] },
  "args": {
    "cni": { "ips": ["192.168.122.175"] }
  }
}