{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/23430","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/23430/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/23430/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/23430/events","html_url":"https://github.com/kubernetes/kubernetes/pull/23430","id":143246418,"number":23430,"title":"[WIP ] Ubernetes : Implement the cluster-controller of kubernetes federation","user":{"login":"huangyuqi","id":13324377,"avatar_url":"https://avatars.githubusercontent.com/u/13324377?v=3","gravatar_id":"","url":"https://api.github.com/users/huangyuqi","html_url":"https://github.com/huangyuqi","followers_url":"https://api.github.com/users/huangyuqi/followers","following_url":"https://api.github.com/users/huangyuqi/following{/other_user}","gists_url":"https://api.github.com/users/huangyuqi/gists{/gist_id}","starred_url":"https://api.github.com/users/huangyuqi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangyuqi/subscriptions","organizations_url":"https://api.github.com/users/huangyuqi/orgs","repos_url":"https://api.github.com/users/huangyuqi/repos","events_url":"https://api.github.com/users/huangyuqi/events{/privacy}","received_events_url":"https://api.github.com/users/huangyuqi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/area/cluster-federation","name":"area/cluster-federation","color":"fad8c7"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/cla:%20yes","name":"cla: yes","color":"bfe5bf"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/release-note-label-needed","name":"release-note-label-needed","color":"db5a64"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/size/XXL","name":"size/XXL","color":"ee0000"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/control-plane","name":"team/control-plane","color":"d2b48c"}],"state":"open","locked":false,"assignee":{"login":"nikhiljindal","id":10199099,"avatar_url":"https://avatars.githubusercontent.com/u/10199099?v=3","gravatar_id":"","url":"https://api.github.com/users/nikhiljindal","html_url":"https://github.com/nikhiljindal","followers_url":"https://api.github.com/users/nikhiljindal/followers","following_url":"https://api.github.com/users/nikhiljindal/following{/other_user}","gists_url":"https://api.github.com/users/nikhiljindal/gists{/gist_id}","starred_url":"https://api.github.com/users/nikhiljindal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikhiljindal/subscriptions","organizations_url":"https://api.github.com/users/nikhiljindal/orgs","repos_url":"https://api.github.com/users/nikhiljindal/repos","events_url":"https://api.github.com/users/nikhiljindal/events{/privacy}","received_events_url":"https://api.github.com/users/nikhiljindal/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/kubernetes/kubernetes/milestones/18","html_url":"https://github.com/kubernetes/kubernetes/milestones/v1.3","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/milestones/18/labels","id":1638460,"number":18,"title":"v1.3","description":"https://github.com/kubernetes/kubernetes/wiki/Release-1.3","creator":{"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},"open_issues":186,"closed_issues":33,"state":"open","created_at":"2016-03-11T07:40:20Z","updated_at":"2016-05-03T21:52:01Z","due_on":"2016-06-24T07:00:00Z","closed_at":null},"comments":16,"created_at":"2016-03-24T13:31:14Z","updated_at":"2016-05-04T08:26:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/23430","html_url":"https://github.com/kubernetes/kubernetes/pull/23430","diff_url":"https://github.com/kubernetes/kubernetes/pull/23430.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/23430.patch"},"body":"This a WIP PR about the cluster-controller of kubernetes federation.\r\nThe realization of cluster-controller is mainly  in the last commit.\r\nNow, because some issue need to be  talked about. So , some logic is in \"TODO\" state.\r\n\r\n+ How to get the status and metrics about cluster?\r\n+ Definition about ubernetes' RC  subRC are not clear.\r\n+ The way to create\\get\\update RC to kubernetes cluster."},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/216782556","html_url":"https://github.com/kubernetes/kubernetes/pull/23430#issuecomment-216782556","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/23430","id":216782556,"user":{"login":"nikhiljindal","id":10199099,"avatar_url":"https://avatars.githubusercontent.com/u/10199099?v=3","gravatar_id":"","url":"https://api.github.com/users/nikhiljindal","html_url":"https://github.com/nikhiljindal","followers_url":"https://api.github.com/users/nikhiljindal/followers","following_url":"https://api.github.com/users/nikhiljindal/following{/other_user}","gists_url":"https://api.github.com/users/nikhiljindal/gists{/gist_id}","starred_url":"https://api.github.com/users/nikhiljindal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikhiljindal/subscriptions","organizations_url":"https://api.github.com/users/nikhiljindal/orgs","repos_url":"https://api.github.com/users/nikhiljindal/repos","events_url":"https://api.github.com/users/nikhiljindal/events{/privacy}","received_events_url":"https://api.github.com/users/nikhiljindal/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T08:26:15Z","updated_at":"2016-05-04T08:26:15Z","body":"These are all great questions that we need to think about.\r\n\r\nHere is one way this might work:\r\n* federation scheduler watches for new replicasets that havent been scheduled.\r\n* scheduler decides which in which k8s clusters does it need to spread this replicaset. It creates a sub replica set in federation etcd for each k8s cluster. For ex: if the scheduler thinks that the federation replicaset with 8 replicas should be spread into 2 k8s clusters each with 4 replicas, then it will create 2 sub replica sets. Each of the sub replica set will have an annotation indicating which k8s cluster does it belong to.\r\n* federation replicaSet controller watches for sub replicasets and creates a replica set in the corresponding k8s cluster.\r\n\r\nBut we need to think more about it.\r\nMaybe the subReplicaSet is not required and instead we can use annotations on the original replicaSet.\r\nI will try to send a design doc for it, but its not part of 1.3. Getting cluster controller and federated services working is the highest priority right now.\r\n\r\nWe should try to get cluster controller in this PR merged as soon as possible.\r\n\r\n"}}