I have a running Mesos/Marathon cluster but the ip of the running instances is not propagated to the Marathon-UI or the traefik proxy.
My mesos setup:
ExecStart=/bin/bash -c "/usr/sbin/mesos-slave \
--hostname=$(/usr/bin/hostname) \
--work_dir=/var/lib/mesos \
--master=zk://xxx.net:2181,yyy:2181,zzz:2181/mesos \
--log_dir=/var/log/mesos \
--executor_registration_timeout=10mins \
--containerizers=docker,mesos \
--docker=$(which docker) \
--ip=$(ifconfig eth0 | grep -oP 'inet \K\S+')"
My treafik conf:
logLevel = "INFO"
[web]
address = ":8088"
[marathon]
endpoint = "http://xxx:8080"
watch = true
domain = "xxx"
exposedByDefault = true
groupsAsSubDomains = true
forceTaskHostname = true
[accessLog]
UPDATE: The application definition is:
{
"id": "/web",
"cmd": null,
"cpus": 1,
"mem": 64,
"disk": 0,
"instances": 1,
"acceptedResourceRoles": [
"*"
],
"container": {
"type": "DOCKER",
"volumes": [],
"docker": {
"image": "ldaume/caddy",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 2015,
"hostPort": 0,
"servicePort": 10001,
"protocol": "tcp",
"labels": {}
}
],
"privileged": false,
"parameters": [],
"forcePullImage": false
}
},
"portDefinitions": [
{
"port": 10001,
"protocol": "tcp",
"labels": {}
}
]
}
The app is accessible if I use the Marathon DNS with the given port.