Consul用户界面在更改时不会更新服务。问题是我将一个example.json启动到marathon并且它在consul用户界面中显示为服务但是当我从马拉松中删除该应用程序时,它不会从领事UI中删除它。 它可能是什么?
答案 0 :(得分:0)
我使用ciscocloud / mesos-consul向consul注册mesos应用程序,效果很好
{
"id": "/mesos-consul",
"cmd": null,
"cpus": 0.33,
"mem": 128,
"disk": 0,
"instances": 1,
"container": {
"type": "DOCKER",
"volumes": [],
"docker": {
"image": "ciscocloud/mesos-consul",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 0,
"hostPort": 0,
"servicePort": 10004,
"protocol": "tcp",
"labels": {}
}
],
"privileged": false,
"parameters": [],
"forcePullImage": false
}
},
"portDefinitions": [
{
"port": 10004,
"protocol": "tcp",
"labels": {}
}
],
"args": [
"--zk=zk://zookeeper-hostname:2181/mesos",
"--mesos-ip-order=mesos",
"--log-level=err",
"--refresh=1s"
]
}