{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/19122","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/19122/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/19122/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/19122/events","html_url":"https://github.com/kubernetes/kubernetes/issues/19122","id":123997489,"number":19122,"title":"Proposal: Share service with namespaces","user":{"login":"wienczny","id":301227,"avatar_url":"https://avatars.githubusercontent.com/u/301227?v=3","gravatar_id":"","url":"https://api.github.com/users/wienczny","html_url":"https://github.com/wienczny","followers_url":"https://api.github.com/users/wienczny/followers","following_url":"https://api.github.com/users/wienczny/following{/other_user}","gists_url":"https://api.github.com/users/wienczny/gists{/gist_id}","starred_url":"https://api.github.com/users/wienczny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wienczny/subscriptions","organizations_url":"https://api.github.com/users/wienczny/orgs","repos_url":"https://api.github.com/users/wienczny/repos","events_url":"https://api.github.com/users/wienczny/events{/privacy}","received_events_url":"https://api.github.com/users/wienczny/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/area/api","name":"area/api","color":"e1ed21"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/api-change","name":"kind/api-change","color":"c7def8"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/api","name":"team/api","color":"d2b48c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-27T21:41:00Z","updated_at":"2015-12-29T23:51:13Z","closed_at":null,"body":"Namespaces are Kubernetes implementation of administration domains.\r\nIf you have a namespace for services that should be shared across namespaces you have to either resolve the the ip using the api or use the dns-addon.\r\nI propose to add a sharing feature to services in namespaces:\r\n\r\n- A boolean flag ```exported``` is added to the service definition.\r\nor\r\n- A list of names of namespaces is added to the service defintion.\r\n\r\nThe first solution should be easier to implement. The second one is more granular."},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/167901400","html_url":"https://github.com/kubernetes/kubernetes/issues/19122#issuecomment-167901400","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/19122","id":167901400,"user":{"login":"wienczny","id":301227,"avatar_url":"https://avatars.githubusercontent.com/u/301227?v=3","gravatar_id":"","url":"https://api.github.com/users/wienczny","html_url":"https://github.com/wienczny","followers_url":"https://api.github.com/users/wienczny/followers","following_url":"https://api.github.com/users/wienczny/following{/other_user}","gists_url":"https://api.github.com/users/wienczny/gists{/gist_id}","starred_url":"https://api.github.com/users/wienczny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wienczny/subscriptions","organizations_url":"https://api.github.com/users/wienczny/orgs","repos_url":"https://api.github.com/users/wienczny/repos","events_url":"https://api.github.com/users/wienczny/events{/privacy}","received_events_url":"https://api.github.com/users/wienczny/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T23:51:13Z","updated_at":"2015-12-29T23:51:13Z","body":">Explicit service dependencies gives us an opportunity to optimize\r\n>and/or lock things down.  It's not a requirement for dynamic\r\n>resolution.  That works today (unless I misunderstand what you mean?).\r\n>Env vars are a last resort and are terrible for dynamic anything, so\r\n>lets ignore them.  If you write your app to do DNS lookups of the\r\n>services you depend on, you will get dynamic responses.  No restart\r\n>needed.\r\n\r\nDNS might be an improvement to env vars but It does not solve the signaling issue. Any application using the DNS for dynamic services has to repeatly poll the DNS for changes. This might work for your own applications but fails if you are using applications from the shelf. Is there a plan for a tool like confd bound to the service changes?"}}