This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 841
CNI Applications Aren't Allocated ServicePort #4548
Comments
This was referenced Oct 4, 2016
The current Unified Containerizer support in Marathon does not support port mappings. Only host networking is possible at the moment. |
jdef
added a commit
that referenced
this issue
Oct 28, 2016
Summary: Port mappings are supported (by Mesos) for more than just Docker, so move PortMapping into Container (as a first step). related to #4548 Test Plan: sbt test Reviewers: nfnt, jasongilanfarr Reviewed By: jasongilanfarr Subscribers: jenkins, marathon-team Differential Revision: https://phabricator.mesosphere.com/D123
@jdef, do we have an ETA when this problem will be solved ? What Marathon ver will the bug fix go under ? Thanks again. |
@jdef, docker containerizer |
bumping the milestone on this. should land in master sooner than later, but won't make the cutoff for marathon 1.4 :( |
Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-1687. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In order to map a marathon task to a service entry in Marathon-LB, it must be allocated a servicePort by Marathon. I have noticed that Marathon is only allocating servicePorts to Docker Containerizer tasks. It is not allocating servicePorts to Unified Containerizer tasks.
As a base case, the the following sample
app.json
launches a docker containerizer task, which is correctly given a servicePort:I see the task's assigned servicePort in its marathon information:
When the above application is launched with the necessary
HAPROXY_*
labels, it works as expected with Marathon-LB.However, the following similar Unified Containerizer task is not assigned a servicePort:
No servicePort is assigned:
When the above application is launched with the necessary
HAPROXY_*
labels, it is not mapped to a service in Marathon-LB (since it does not have a servicePort to assign it to.)cc: @jdef
The text was updated successfully, but these errors were encountered: