2

I would like to understand the relation between a Marathon App and a container. Is it really so, that a Marathon App definition can contain only a single container definition (1:1)? As far as I understand the Marathon REST API, link attached, the answer is yes.

https://mesosphere.github.io/marathon/docs/rest-api.html#post-/v2/apps

But then are we supposed to use App Groups in order to define such complex applications that are built from more than a single container? I have checked Kubernetes, and the idea of "pod" in that case seems to be very convenient to build such applications, that are composed by multiple containers, which containers in the same pod have a single network stack, and application scaling happens on pod level.

Can we say, that Kubernetes pod corresponds to Marathon App Group? Or should I not try to find any similarities, but rather I should better understand Marathon philosophy?

Thank you!

Regards,

Laszlo

4

1 回答 1

0

Marathon 中的应用程序指定如何生成该应用程序的任务。虽然您可以指定要生成多少任务,但这些任务中的每一项仅对应一个命令或容器。

为了帮助您,我需要更多地了解您的用例。

组可用于组织相关应用程序,包括依赖项。应用程序的任务不一定位于同一主机上。

如果您需要协同定位,您需要创建一个具有多个已处理的容器或使用约束来直接指定要在哪个主机上运行任务。

于 2015-07-28T12:28:26.477 回答