Added mesos-dns package

This commit is contained in:
Raul Sanchez
2017-02-03 19:41:30 +01:00
parent ef37392cd3
commit a1ceaa6142
5 changed files with 157 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
# Mesos-dns (Experimental)
### Info
Add mesos-dns component to your mesos orchestrator, to be able that docker
### Usage
Mesos-dns will be listening at link_local_ip and will forward dns queries to rancherDNS.
To deploy marathon tasks, you need to set network=HOST and set dns=link_local_ip
Marathon json template example
```
{
"id": "NAME",
"cmd": null,
"cpus": 1,
"mem": 128,
"disk": 0,
"instances": 1,
"container": {
"type": "DOCKER",
"volumes": [],
"docker": {
"image": “DOCKER_IMAGE",
"network": "HOST",
"privileged": false,
"parameters": [
{
"key": "dns",
"value": "169.254.169.251"
}
],
"forcePullImage": false
}
},
"portDefinitions": [
{
"port": 10000,
"protocol": "tcp",
"labels": {}
}
]
}
```