Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

IP-Per-Container broken with Marathon-v1.3.0+ #313

Closed
ozdanborne opened this issue Sep 20, 2016 · 4 comments · Fixed by #329
Closed

IP-Per-Container broken with Marathon-v1.3.0+ #313

ozdanborne opened this issue Sep 20, 2016 · 4 comments · Fixed by #329
Labels

Comments

@ozdanborne
Copy link

Latest Marathon changes make it impossible to specify discoveryInfo and ipAddress fields. Instead, Marathon devs say to use PortMappings.

Marathon-LB needs to update where it expects this information to be the new location.

Sort-of unrelated good news - if a user specifies a VHOST and PortMappings.ContainerPort, Marathon is now correctly allocating servicePorts in the PortMappings section. So that issue in Marathon is now effectively resolved.

I've been meaning to tackle these issues but now it seems less likely I'll get to them this week, so just wanted to start a log here of what's going on for the community.

@brndnmtthws
Copy link
Contributor

It looks like the app state has changed quite a bit in Marathon 1.3. I'm probably going to rip out the existing behaviour (auto assigning, etc), and replace it with the new stuff, then mark MLB 1.4 as being compatible with Marathon 1.3+ only (for IP-per-task). Does that sound reasonable?

@brndnmtthws
Copy link
Contributor

Actually, it might be slightly more complicated than I thought. Let me investigate further.

brndnmtthws added a commit that referenced this issue Sep 30, 2016
brndnmtthws added a commit that referenced this issue Sep 30, 2016
brndnmtthws added a commit that referenced this issue Sep 30, 2016
brndnmtthws added a commit that referenced this issue Sep 30, 2016
brndnmtthws added a commit that referenced this issue Sep 30, 2016
brndnmtthws added a commit that referenced this issue Sep 30, 2016
brndnmtthws added a commit that referenced this issue Sep 30, 2016
@brndnmtthws
Copy link
Contributor

PTAL at #329.

brndnmtthws added a commit that referenced this issue Sep 30, 2016
brndnmtthws added a commit that referenced this issue Sep 30, 2016
brndnmtthws added a commit that referenced this issue Oct 4, 2016
@ozdanborne
Copy link
Author

ozdanborne commented Oct 4, 2016

Woo! Thanks for this @brndnmtthws ! I tried testing this yesterday with Calico but ran into troubles with my app.json (which turned out to just be typos on my end). Did a runthrough today with the v1.4.0 release and it works with calico networked docker tasks (even using VHOSTS), which is awesome!

Unfortunately, I found it does not work with CNI tasks, but I think the reason is that Marathon still is not auto-allocating servicePorts to CNI tasks. Raised #4548 with Marathon to track this new issue.

Thanks again!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants