一、marathon最简单的hello world应用

要求:
  部署一个打印语句,输出将在stdout的日志中查看.
方案:
cat test001.json

{
  "id": "hello",
  "cmd": "while [ true ] ; do echo 'Hello Marathon' >> /cloudstar/hello.txt; sleep 1; done",
  "cpus": 0.01,
  "mem": 1.0,
  "instances": 1
}

说明:
   1.将此json文件通过marathon web ui 进行部署
   2.可以在mesos的log中看到输出
Logo

云原生社区为您提供最前沿的新闻资讯和知识内容

更多推荐