Tried setting VIP (non name based with IP and port) as described in the documentation
Also referred the Marathon examples.
Writing the sample json here (same as the one in above link)
{
"id": "/server",
"cmd": "python -m SimpleHTTPServer 80",
"cpus": 1,
"mem": 128,
"disk": 0,
"instances": 1,
"container": {
"docker": {
"image": "python:2.7-alpine",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 80,
"protocol": "tcp",
"name": "http",
"labels": {
"VIP_0": "192.168.0.100:80"
}
}
]
},
"type": "DOCKER"
}
}
But as per the original expectation in the documentation the IP 192.168.0.100:80
should be reachable from nodes the cluster.. But apparently this doesn't work for me.. A simple Curl fails.. I need to make access this application accessible from other process which are not mesos-dns aware.