【发布时间】:2018-02-28 10:26:54
【问题描述】:
我已经使用 DCOS 和 Marathon 框架在 Azure 中部署了一个 hello world 应用程序。我正在尝试使用 fqn: 托管应用程序的端口号来访问它。我无法打开应用程序
以下是我用过的json
{
"id": "/dockercloud-hello-world",
"cmd": null,
"cpus": 0.1,
"mem": 128,
"disk": 0,
"instances": 2,
"acceptedResourceRoles": [
"*"
],
"container": {
"type": "DOCKER",
"volumes": [],
"docker": {
"image": "dockercloud/hello-world",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 80,
"hostPort": 0,
"servicePort": 10000,
"protocol": "tcp",
"labels": {}
}
],
"privileged": false,
"parameters": [],
"forcePullImage": true
}
},
"healthChecks": [
{
"gracePeriodSeconds": 10,
"intervalSeconds": 2,
"timeoutSeconds": 10,
"maxConsecutiveFailures": 10,
"portIndex": 0,
"path": "/",
"protocol": "HTTP",
"ignoreHttp1xx": false
}
],
"portDefinitions": [
{
"port": 10000,
"protocol": "tcp",
"name": "default",
"labels": {}
}
]
}
我已经为主 nsg 资源添加了 NSG 入站规则 我为主 lb 资源添加了 NAT 规则,允许自定义端口
【问题讨论】:
标签: azure docker marathon dcos azure-container-service