我设置了一个单节点mesos主机。当我通过marathonwebui部署应用程序时,它工作得很好。
但是,当我使用marathonapi部署pod时,mesos主机会立即停用代理,pod的创建就会陷入困境。
根据文档,我不能通过MarathonWeb部署pod。它只能使用api进行部署。
以下是从属日志:
日志文件创建时间:2018/09/23 17:20:37运行于计算机:centos-4vcpu-8gb-01日志行格式:[iwef]mmdd hh:mm:ss.uuu threadidfile:line]msg e0923 17:20:37.561741 19267从机。cpp:4512]无法处理任务的状态更新确认(uuid:7f42cf82-8b1f-4ab5-8cff-0beb917efa3f)框架b606e9e2-b9ef-4b09-9b7d-3f6d0489bf58-0000的stubgen-db-pod.instance-ef81f6b3-bf54-11e8-88d8-0242845a02ba.stubgen-db-container:找不到任务stubgen-db-pod.instance-ef81f6b3-bf54-11e8-88d8-0242845a02ba.stubgen-db-container的任务状态更新流
有时,它会显示“非有效容器”和“未找到容器”
我可以使用docker cli启动容器。
有人能告诉我原因吗?
在我的pod定义下面粘贴:
{
"id": "stubgen-db-pod",
"containers": [
{
"name": "stubgen-db-container",
"resources": {
"cpus": 0.5,
"mem": 1024
},
"endpoints": [
{
"name": "stubgen-db",
"containerPort": 27017,
"hostPort": 0,
"protocol": [
"tcp"
]
}
],
"image": {
"kind": "DOCKER",
"id": "<image_from_docker_repo>"
},
"healthCheck":{
"http":{
"endpoint":"httpendpoint",
"path":"/ping",
"scheme":"HTTP"
},
"gracePeriodSeconds":30,
"intervalSeconds":5,
"maxConsecutiveFailures":3,
"timeoutSeconds":3,
"delaySeconds":2
},
"volumeMounts":[
{
"name":"dbvolume",
"mountPath":"/data/db"
}
]
}
],
"volumes":[
{
"name":"dbvolume"
}
],
"networks":[
{
"name":"dcos",
"mode":"container"
}
],
"scaling":{
"kind":"fixed",
"instances":1,
"maxInstances":null
},
"scheduling": {
"backoff":{
"backoff":1,
"backoffFactor":1.15,
"maxLaunchDelay":3600
},
"upgrade":{
"minimumHealthCapacity":1,
"maximumOverCapacity":1
},
"unreachableStrategy": {
"inactiveAfterSeconds":900,
"expungeAfterSeconds":604800
}
}
}
暂无答案!
目前还没有任何答案,快来回答吧!