已检查此 URL(https://support.mesosphere.com/hc/en-us/articles/205575835-My-Marathon-app-isn-t-deploying-What-s-wrong-)日志没有显示任何原因。登录 /var/log/syslog 和 /var/log/mesos 也没有给出任何理由。
我尝试部署的应用程序的 JSON 文件:
{
"id": "/nodeexporter",
"instances": 1,
"constraints": [["hostname", "UNIQUE"]],
"container": {
"type": "DOCKER",
"docker": {
"image": "prom/node-exporter",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 9100,
"hostPort": 0,
"protocol": "tcp"
}
]
}
},
"healthChecks": [{
"protocol": "TCP",
"gracePeriodSeconds": 600,
"intervalSeconds": 30,
"portIndex": 0,
"timeoutSeconds": 10,
"maxConsecutiveFailures": 2
}]
}