-
Notifications
You must be signed in to change notification settings - Fork 40k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-Port Servers in Services v2 #1802
Comments
Yes, many applications do use multiple ports, including our internal equivalents to Zookeeper. Option 1: Multiple named ports per service (potentially of different protocols) I would still produce multiple Endpoints lists and multiple SRV records (once we have DNS integrated), one for each port. Of course, we would generate multiple sets of Docker links variables, as well, one for each port. Pros:
Cons:
Option 2: Split IP assignment and Port declarations into separate API objects Pros:
Cons:
In this case, I think worse is better. I favor option 1. /cc @thockin |
+1 -- just following along as I'm trying to do the same thing. |
On this stackoverflow issue a kubernetes user wants to run an application which dynamically allocates ports. Currently, the user is creating a service for each port in the range which might be used, which seems like a waste of IPs and a lot of redundant config. |
Exactly same problem with RabbitMQ, need 3 ports to expose |
+1 |
Discussion is happening on #2585. We'd appreciate feedback from users with multi-port services, especially if you plan to query the Endpoints API to discover targets/peers of the multi-port service. |
Multi-port services is in! Happy zookeeping. |
Great!! We just ran into this.. Which version of Kubernetes has this checkin? Any easy way to figure that out? UPDATE: Saw it is in 0.15RC - https://github.com/GoogleCloudPlatform/kubernetes/releases/tag/v0.15.0 |
This is in the 0.15.0 release. |
Thanks |
[release-4.13] OCPBUGS-23287: UPSTREAM: 121881: Use golang library instead of mklink
I'm running ZooKeeper, which requires every server to know about every other server at startup (this will be fixed in 3.5.0, but that's still in alpha). In addition, each server needs to expose two different ports: a leader port and an election port. I've been using a model in which every ZooKeeper instance gets two services -- one for each port. Each such service then has only one pod matching its selector.
For example:
With Services v2, I won't be able to do that, because if I create two services for one instance, they will have different IPs. There's no way to tell ZooKeeper to use a different IP to connect to the leader port vs. the election port of a given server.
Since a service in v2 will have its own IP address, can we maybe have the ability to define multiple ports on a single service? Or is there a better way to handle this kind of use case?
The text was updated successfully, but these errors were encountered: