{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/29180","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/29180/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/29180/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/29180/events","html_url":"https://github.com/kubernetes/kubernetes/pull/29180","id":166283585,"number":29180,"title":"start k8s master by pod for ubuntu scripts","user":{"login":"wangzhezhe","id":7677214,"avatar_url":"https://avatars.githubusercontent.com/u/7677214?v=3","gravatar_id":"","url":"https://api.github.com/users/wangzhezhe","html_url":"https://github.com/wangzhezhe","followers_url":"https://api.github.com/users/wangzhezhe/followers","following_url":"https://api.github.com/users/wangzhezhe/following{/other_user}","gists_url":"https://api.github.com/users/wangzhezhe/gists{/gist_id}","starred_url":"https://api.github.com/users/wangzhezhe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangzhezhe/subscriptions","organizations_url":"https://api.github.com/users/wangzhezhe/orgs","repos_url":"https://api.github.com/users/wangzhezhe/repos","events_url":"https://api.github.com/users/wangzhezhe/events{/privacy}","received_events_url":"https://api.github.com/users/wangzhezhe/received_events","type":"User","site_admin":false},"labels":[{"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/L","name":"size/L","color":"ee9900"}],"state":"open","locked":false,"assignee":{"login":"eparis","id":8093535,"avatar_url":"https://avatars.githubusercontent.com/u/8093535?v=3","gravatar_id":"","url":"https://api.github.com/users/eparis","html_url":"https://github.com/eparis","followers_url":"https://api.github.com/users/eparis/followers","following_url":"https://api.github.com/users/eparis/following{/other_user}","gists_url":"https://api.github.com/users/eparis/gists{/gist_id}","starred_url":"https://api.github.com/users/eparis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eparis/subscriptions","organizations_url":"https://api.github.com/users/eparis/orgs","repos_url":"https://api.github.com/users/eparis/repos","events_url":"https://api.github.com/users/eparis/events{/privacy}","received_events_url":"https://api.github.com/users/eparis/received_events","type":"User","site_admin":false},"assignees":[{"login":"eparis","id":8093535,"avatar_url":"https://avatars.githubusercontent.com/u/8093535?v=3","gravatar_id":"","url":"https://api.github.com/users/eparis","html_url":"https://github.com/eparis","followers_url":"https://api.github.com/users/eparis/followers","following_url":"https://api.github.com/users/eparis/following{/other_user}","gists_url":"https://api.github.com/users/eparis/gists{/gist_id}","starred_url":"https://api.github.com/users/eparis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eparis/subscriptions","organizations_url":"https://api.github.com/users/eparis/orgs","repos_url":"https://api.github.com/users/eparis/repos","events_url":"https://api.github.com/users/eparis/events{/privacy}","received_events_url":"https://api.github.com/users/eparis/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2016-07-19T09:13:24Z","updated_at":"2016-08-19T12:25:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/29180","html_url":"https://github.com/kubernetes/kubernetes/pull/29180","diff_url":"https://github.com/kubernetes/kubernetes/pull/29180.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/29180.patch"},"body":"Just as @resouer mentioned in  [#23241](https://github.com/kubernetes/kubernetes/issues/23241#issuecomment-232616567), this pr add the capability to start the kube-controller-manager and kube-scheduler in a pod for ubuntu scripts. \r\nif set the env STARTING_BY_CONTAINER=true the kube-controller-manager and kube-scheduler will started by a pod when the node identity is ai , if set the env STARTING_BY_CONTAINER=false, the component will be started in original upstart way.\r\n\r\n```\r\n$ export KUBE_VERSION=1.3.0\r\n$ export FLANNEL_VERSION=0.5.0\r\n$ export ETCD_VERSION=2.2.0\r\n$ export nodes=\"parallels@10.211.55.5\"\r\n$ export role=\"ai\"\r\n$ export NUM_NODES=${NUM_NODES:-1}\r\n$ export SERVICE_CLUSTER_IP_RANGE=192.168.3.0/24\r\n$ export FLANNEL_NET=172.16.0.0/16\r\n$ export STARTING_BY_CONTAINER=true\r\n$ KUBERNETES_PROVIDER=ubuntu ./kube-up.sh\r\n\r\n...\r\n\r\nValidating parallels@10.211.55.5parallels@10.211.55.5's password: \r\nparallels@10.211.55.5's password: \r\nparallels@10.211.55.5's password: \r\n\r\nUsing master 10.211.55.5\r\ncluster \"ubuntu\" set.\r\nuser \"ubuntu\" set.\r\ncontext \"ubuntu\" set.\r\nswitched to context \"ubuntu\".\r\nWrote config for ubuntu to /home/parallels/.kube/config\r\n... calling validate-cluster\r\nFound 1 node(s).\r\nNAME          STATUS    AGE\r\n10.211.55.5   Ready     38s\r\nValidate output:\r\nNAME                 STATUS    MESSAGE              ERROR\r\ncontroller-manager   Healthy   ok                   \r\nscheduler            Healthy   ok                   \r\netcd-0               Healthy   {\"health\": \"true\"}   \r\nCluster validation succeeded\r\nDone, listing cluster services:\r\n\r\nKubernetes master is running at http://10.211.55.5:8080\r\n\r\nTo further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.\r\n\r\n\r\n# ./kubectl get pod\r\nNAME                     READY     STATUS    RESTARTS   AGE\r\nk8s-master-10.211.55.5   2/2       Running   2          3m\r\n```\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.kubernetes.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes/29180)\n<!-- Reviewable:end -->\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/241004645","html_url":"https://github.com/kubernetes/kubernetes/pull/29180#issuecomment-241004645","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/29180","id":241004645,"user":{"login":"eparis","id":8093535,"avatar_url":"https://avatars.githubusercontent.com/u/8093535?v=3","gravatar_id":"","url":"https://api.github.com/users/eparis","html_url":"https://github.com/eparis","followers_url":"https://api.github.com/users/eparis/followers","following_url":"https://api.github.com/users/eparis/following{/other_user}","gists_url":"https://api.github.com/users/eparis/gists{/gist_id}","starred_url":"https://api.github.com/users/eparis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eparis/subscriptions","organizations_url":"https://api.github.com/users/eparis/orgs","repos_url":"https://api.github.com/users/eparis/repos","events_url":"https://api.github.com/users/eparis/events{/privacy}","received_events_url":"https://api.github.com/users/eparis/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T12:25:11Z","updated_at":"2016-08-19T12:25:11Z","body":"@dalanlan "}}
{"actor":{"display_login":"eparis"}}