{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/1802","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/1802/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/1802/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/1802/events","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/1802","id":45834881,"number":1802,"title":"Multi-Port Servers in Services v2","user":{"login":"enisoc","id":6733629,"avatar_url":"https://avatars.githubusercontent.com/u/6733629?v=3","gravatar_id":"","url":"https://api.github.com/users/enisoc","html_url":"https://github.com/enisoc","followers_url":"https://api.github.com/users/enisoc/followers","following_url":"https://api.github.com/users/enisoc/following{/other_user}","gists_url":"https://api.github.com/users/enisoc/gists{/gist_id}","starred_url":"https://api.github.com/users/enisoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enisoc/subscriptions","organizations_url":"https://api.github.com/users/enisoc/orgs","repos_url":"https://api.github.com/users/enisoc/repos","events_url":"https://api.github.com/users/enisoc/events{/privacy}","received_events_url":"https://api.github.com/users/enisoc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/api/cluster","name":"api/cluster","color":"e1ed21"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/area/networking","name":"area/networking","color":"006b75"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/kind/design","name":"kind/design","color":"50cba5"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/priority/P2","name":"priority/P2","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"davidopp","id":8264113,"avatar_url":"https://avatars.githubusercontent.com/u/8264113?v=3","gravatar_id":"","url":"https://api.github.com/users/davidopp","html_url":"https://github.com/davidopp","followers_url":"https://api.github.com/users/davidopp/followers","following_url":"https://api.github.com/users/davidopp/following{/other_user}","gists_url":"https://api.github.com/users/davidopp/gists{/gist_id}","starred_url":"https://api.github.com/users/davidopp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidopp/subscriptions","organizations_url":"https://api.github.com/users/davidopp/orgs","repos_url":"https://api.github.com/users/davidopp/repos","events_url":"https://api.github.com/users/davidopp/events{/privacy}","received_events_url":"https://api.github.com/users/davidopp/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2014-10-15T06:47:19Z","updated_at":"2015-01-28T01:21:06Z","closed_at":null,"body":"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.\r\n\r\nFor example:\r\n```\r\npods/zk1\r\npods/zk2\r\n...\r\nservices/zk1-leader\r\nservices/zk1-election\r\nservices/zk2-leader\r\nservices/zk2-election\r\n...\r\n```\r\n\r\nWith 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.\r\n\r\nSince 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?"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/comments/71764202","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/1802#issuecomment-71764202","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/1802","id":71764202,"user":{"login":"bgrant0607","id":7725777,"avatar_url":"https://avatars.githubusercontent.com/u/7725777?v=3","gravatar_id":"","url":"https://api.github.com/users/bgrant0607","html_url":"https://github.com/bgrant0607","followers_url":"https://api.github.com/users/bgrant0607/followers","following_url":"https://api.github.com/users/bgrant0607/following{/other_user}","gists_url":"https://api.github.com/users/bgrant0607/gists{/gist_id}","starred_url":"https://api.github.com/users/bgrant0607/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgrant0607/subscriptions","organizations_url":"https://api.github.com/users/bgrant0607/orgs","repos_url":"https://api.github.com/users/bgrant0607/repos","events_url":"https://api.github.com/users/bgrant0607/events{/privacy}","received_events_url":"https://api.github.com/users/bgrant0607/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T01:21:06Z","updated_at":"2015-01-28T01:21:06Z","body":"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."}}