{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/5103","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/5103/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/5103/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/5103/events","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/5103","id":60008399,"number":5103,"title":"kubelet: revamp the pod/container naming scheme","user":{"login":"yujuhong","id":10524058,"avatar_url":"https://avatars.githubusercontent.com/u/10524058?v=3","gravatar_id":"","url":"https://api.github.com/users/yujuhong","html_url":"https://github.com/yujuhong","followers_url":"https://api.github.com/users/yujuhong/followers","following_url":"https://api.github.com/users/yujuhong/following{/other_user}","gists_url":"https://api.github.com/users/yujuhong/gists{/gist_id}","starred_url":"https://api.github.com/users/yujuhong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yujuhong/subscriptions","organizations_url":"https://api.github.com/users/yujuhong/orgs","repos_url":"https://api.github.com/users/yujuhong/repos","events_url":"https://api.github.com/users/yujuhong/events{/privacy}","received_events_url":"https://api.github.com/users/yujuhong/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/cla:%20yes","name":"cla: yes","color":"ECF7EC"}],"state":"open","locked":false,"assignee":{"login":"dchen1107","id":7740897,"avatar_url":"https://avatars.githubusercontent.com/u/7740897?v=3","gravatar_id":"","url":"https://api.github.com/users/dchen1107","html_url":"https://github.com/dchen1107","followers_url":"https://api.github.com/users/dchen1107/followers","following_url":"https://api.github.com/users/dchen1107/following{/other_user}","gists_url":"https://api.github.com/users/dchen1107/gists{/gist_id}","starred_url":"https://api.github.com/users/dchen1107/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dchen1107/subscriptions","organizations_url":"https://api.github.com/users/dchen1107/orgs","repos_url":"https://api.github.com/users/dchen1107/repos","events_url":"https://api.github.com/users/dchen1107/events{/privacy}","received_events_url":"https://api.github.com/users/dchen1107/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2015-03-05T20:09:31Z","updated_at":"2015-03-06T23:48:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/5103","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/5103","diff_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/5103.diff","patch_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/5103.patch"},"body":"There are two main goals for this change.\r\n 1. Fix the naming scheme in kubelet so that it accepts DNS subdomain\r\n     name/namespaces correctly (#4920). The design is discussed in #3453.\r\n 2. Prepare for syncing the static pods back to the apiserver(#4090). This\r\n     includes\r\n  - Eliminate the source component in the internal full pod name (#4922). Pods\r\n   no longer need sources as they will all be sync'd via apiserver.\r\n  - Changing the naming scheme for the static (file-, http-, and etcd-based)\r\n    pods such that they are distinguishable when syncing back to the apiserver.\r\n\r\nThe changes includes:\r\n    * `name: <pod.Name>-<hostname`\r\n    * `namespace: <cluster_namespace> (i.e. \"default\" for now).`\r\n    * `container_name: k8s_<contianer_name>.<hash_of_container>_<pod_name>_<namespace>_<uid>_<random>`\r\n \r\nNote that this is not backward-compatible, meaning the kubelet won't recognize\r\nexisting running containers using the old naming scheme.\r\n"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/comments/77657381","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/5103#issuecomment-77657381","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/5103","id":77657381,"user":{"login":"yujuhong","id":10524058,"avatar_url":"https://avatars.githubusercontent.com/u/10524058?v=3","gravatar_id":"","url":"https://api.github.com/users/yujuhong","html_url":"https://github.com/yujuhong","followers_url":"https://api.github.com/users/yujuhong/followers","following_url":"https://api.github.com/users/yujuhong/following{/other_user}","gists_url":"https://api.github.com/users/yujuhong/gists{/gist_id}","starred_url":"https://api.github.com/users/yujuhong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yujuhong/subscriptions","organizations_url":"https://api.github.com/users/yujuhong/orgs","repos_url":"https://api.github.com/users/yujuhong/repos","events_url":"https://api.github.com/users/yujuhong/events{/privacy}","received_events_url":"https://api.github.com/users/yujuhong/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T23:48:38Z","updated_at":"2015-03-06T23:48:38Z","body":"@dchen1107, this PR only appends the hostname to the pod name for http/file sources. For the api source, the pods already exist in the apiserver, we can't really change the name (and there is no point to...)."}}