[prev in list] [next in list] [prev in thread] [next in thread]
List: mesos-user
Subject: RE: Dedicated ip to task
From: "Marc Roos" <M.Roos () f1-outsourcing ! eu>
Date: 2017-12-12 15:56:29
Message-ID: "H000007100106f47.1513094189.sx.f1-outsourcing.eu*" () MHS
[Download RAW message or body]
I read here that it is maybe possible to assign an ip to task via
CNI_ARGS and host-local
https://issues.apache.org/jira/browse/MESOS-5578
https://github.com/containernetworking/plugins/blob/master/plugins/ipam/host-local/README.md
Via
The following CNI_ARGS are supported:
ip: request a specific IP address from a subnet.
The following args conventions are supported:
ips (array of strings): A list of custom IPs to attempt to allocate
1. How do convert this cmd "./Hello-*/bin/hello -Dhttp.port=80" to be
able to use args?
2. Should this be working in marathon 1.4.9, mesos 1.4.1
{
"id": "hello-play",
"cmd": "./Hello-*/bin/hello -Dhttp.port=80",
"cpus": 0.1,
"mem": 32,
"disk": 0,
"instances": 1,
"acceptedResourceRoles": [
"*"
],
"ipAddress": {"networkName": "cni-bridge-test"},
"args": {"ips": ["192.168.0.100", "192.168.0.101"]},
"uris": [
"http://192.168.10.2/cobbler/PlayHello.zip"
]
}
-----Original Message-----
From: Avinash Sridharan [mailto:avinash@mesosphere.io]
Sent: dinsdag 12 december 2017 1:13
To: Jie Yu
Cc: user
Subject: Re: Dedicated ip to task
Hi Marc,
In that demo since we new that those were the only containers that were
getting launched, and the containers are getting launched on a bridge
network using a `host-local` IPAM the ip-addresses were predictable.
However, in a real setup you would probably need to rely on something
like `mesos-dns` to peg your backend to a DNS name rather than an IP
address. The DNS name will be predictable and DNS resolution would end
up resolving to the right backend.
If you are looking at Marathon + Mesos, the same can be achieved by
`marathon-lb` (https://github.com/mesosphere/marathon-lb). The
limitation here being that `marathon-lb` will peg against Marathon tasks
rather than Mesos tasks. So if you want use your own Mesos frameworks to
launch tasks that need to be load-balanced you won't be able to use
`marathon-lb`.
On Mon, Dec 11, 2017 at 3:37 PM, Jie Yu <yujie.jay@gmail.com> wrote:
+ Avinash
On Mon, Dec 11, 2017 at 2:21 PM, Marc Roos
<M.Roos@f1-outsourcing.eu> wrote:
In this https://youtu.be/0UMCoojACOs?t=1737
<https://youtu.be/0UMCoojACOs?t=1737> cni video of Avinash
Sridharan, he has a haproxy setup with two webservers on
different
networks. But how does he know what these ip adresses will be,
so he can
configure them in the proxy?
--
Avinash Sridharan, Mesosphere
+1 (323) 702 5245
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic