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/07 20:28:36 UTC

variables in cni network configuration

Is it possible to have the agent/slave ip referenced in a cni network 
configuration?

{
  "name": "cni-apps",
  "type": "bridge",
  "bridge": "cni-apps0",
  "mtu": 1462,
  "isGateway": false,
  "ipMasq": false,
  "ipam": {
    "type": "host-local",
    "subnet": "192.168.122.0/24",
    "rangeStart": "192.168.122.171",
    "rangeEnd": "192.168.122.179",
    "routes": [ { "dst": "$AGENTIP/32", "gw": "0.0.0.0" }]
  },
  "args": {
    "cni": { "ips": ["192.168.122.175"] }
  }
}