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 2017/10/17 20:24:42 UTC
Marathon 1.5 necessary for testing with cni
I want to test a bit with mesos, docker images on the mesos
containerizer and cni. Just give a container an ip.
This is not possible with marathon <1.5? I am using the mesosphere repo
for el7, is there some repo that has 1.5?
I tried to add this to the container configuration
"networks": [ { "mode": "container", "name": "mynet" } ],
[@m03 ~]# cat /etc/mesos-cni/10-mynet.conf
{
"cniVersion": "0.2.0",
"name": "mynet",
"type": "bridge",
"bridge": "cni0",
"isGateway": true,
"ipMasq": true,
"ipam": {
"type": "host-local",
"subnet": "10.22.0.0/16",
"routes": [
{ "dst": "0.0.0.0/0" }
]
}
}
On the github page of marathon
(https://github.com/mesosphere/marathon/blob/master/docs/docs/networking
.md) they are writing 1.5 is necessary for this?
More info I got from this demo https://youtu.be/0UMCoojACOs?t=1411
CentOS7 3.10.0-693.2.2.el7.x86_64
mesos-1.4.0-2.0.1.x86_64
marathon-1.4.8-1.0.660.el7.x86_64
containernetworking-cni-0.5.1-1.el7.x86_64
mesosphere-zookeeper-3.4.6-0.1.20141204175332.centos7.x86_6
Re: Marathon 1.5 necessary for testing with cni
Posted by Avinash Sridharan <av...@mesosphere.io>.
Hi Marc,
The Marathon app def:
""networks": [ { "mode": "container", "name": "mynet" } ],"
is the new API that go introduced in 1.5.
Prior to 1.5 you would do:
"ipAddress": [{"networkName":"mynet"}]
@jdef ^^?
On Tue, Oct 17, 2017 at 1:24 PM, Marc Roos <M....@f1-outsourcing.eu> wrote:
>
> I want to test a bit with mesos, docker images on the mesos
> containerizer and cni. Just give a container an ip.
>
> This is not possible with marathon <1.5? I am using the mesosphere repo
> for el7, is there some repo that has 1.5?
>
>
> I tried to add this to the container configuration
>
> "networks": [ { "mode": "container", "name": "mynet" } ],
>
>
> [@m03 ~]# cat /etc/mesos-cni/10-mynet.conf
> {
> "cniVersion": "0.2.0",
> "name": "mynet",
> "type": "bridge",
> "bridge": "cni0",
> "isGateway": true,
> "ipMasq": true,
> "ipam": {
> "type": "host-local",
> "subnet": "10.22.0.0/16",
> "routes": [
> { "dst": "0.0.0.0/0" }
> ]
> }
> }
>
>
> On the github page of marathon
> (https://github.com/mesosphere/marathon/blob/master/docs/docs/networking
> .md) they are writing 1.5 is necessary for this?
>
> More info I got from this demo https://youtu.be/0UMCoojACOs?t=1411
>
>
> CentOS7 3.10.0-693.2.2.el7.x86_64
> mesos-1.4.0-2.0.1.x86_64
> marathon-1.4.8-1.0.660.el7.x86_64
> containernetworking-cni-0.5.1-1.el7.x86_64
> mesosphere-zookeeper-3.4.6-0.1.20141204175332.centos7.x86_6
>
>
--
Avinash Sridharan, Mesosphere
+1 (323) 702 5245