{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/comments/30003080","id":30003080,"diff_hunk":"@@ -0,0 +1,31 @@\n+#!/bin/bash\n+\n+# Copyright 2015 The Kubernetes Authors All rights reserved.\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#     http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+# Create generic token following GCE standard\n+create_token() {\n+  echo $(cat /dev/urandom | base64 | tr -d \"=+/\" | dd bs=32 count=1 2> /dev/null)\n+}\n+\n+get_tokens_from_csv() {\n+  KUBE_BEARER_TOKEN=$(awk -F, '/kubelet/ {print $1}' ${KUBE_TEMP}/${1}_tokens.csv)","path":"cluster/rackspace/authorization.sh","position":23,"original_position":23,"commit_id":"571c14d66ded97811d5bf215654d248d61fe06e6","original_commit_id":"571c14d66ded97811d5bf215654d248d61fe06e6","user":{"login":"erictune","id":8105590,"avatar_url":"https://avatars.githubusercontent.com/u/8105590?v=3","gravatar_id":"","url":"https://api.github.com/users/erictune","html_url":"https://github.com/erictune","followers_url":"https://api.github.com/users/erictune/followers","following_url":"https://api.github.com/users/erictune/following{/other_user}","gists_url":"https://api.github.com/users/erictune/gists{/gist_id}","starred_url":"https://api.github.com/users/erictune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erictune/subscriptions","organizations_url":"https://api.github.com/users/erictune/orgs","repos_url":"https://api.github.com/users/erictune/repos","events_url":"https://api.github.com/users/erictune/events{/privacy}","received_events_url":"https://api.github.com/users/erictune/received_events","type":"User","site_admin":false},"body":"In GCE it says this:\r\n```bash\r\n    (umask 077;\r\n      echo \"${KUBE_BEARER_TOKEN},admin,admin\" > \"${KNOWN_TOKENS_FILE}\";\r\n      echo \"${KUBELET_TOKEN},kubelet,kubelet\" >> \"${KNOWN_TOKENS_FILE}\";\r\n      echo \"${KUBE_PROXY_TOKEN},kube_proxy,kube_proxy\" >> \"${KNOWN_TOKENS_FILE}\")\r\n```","created_at":"2015-05-10T15:27:15Z","updated_at":"2015-05-10T15:27:15Z","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/7998#discussion_r30003080","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/7998","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/comments/30003080"},"html":{"href":"https://github.com/GoogleCloudPlatform/kubernetes/pull/7998#discussion_r30003080"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/7998"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/7998","id":35051117,"html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/7998","diff_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/7998.diff","patch_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/7998.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/7998","number":7998,"state":"open","locked":false,"title":"Rackspace fixes","user":{"login":"doublerr","id":1554646,"avatar_url":"https://avatars.githubusercontent.com/u/1554646?v=3","gravatar_id":"","url":"https://api.github.com/users/doublerr","html_url":"https://github.com/doublerr","followers_url":"https://api.github.com/users/doublerr/followers","following_url":"https://api.github.com/users/doublerr/following{/other_user}","gists_url":"https://api.github.com/users/doublerr/gists{/gist_id}","starred_url":"https://api.github.com/users/doublerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doublerr/subscriptions","organizations_url":"https://api.github.com/users/doublerr/orgs","repos_url":"https://api.github.com/users/doublerr/repos","events_url":"https://api.github.com/users/doublerr/events{/privacy}","received_events_url":"https://api.github.com/users/doublerr/received_events","type":"User","site_admin":false},"body":"Please do not merge; looking for comments\r\n\r\nThis is a pretty large update required to get the cluster running on Rackspace again.\r\n\r\nNotable changes:\r\n* Use Flanneld instead of bash for next hop routing\r\n* Use KelseyHightowers kubelet registration tool\r\n* Added in token support for kubelet,kube-proxy <-> apiserver communication\r\n * Bearer tokens are passed to nodes via cloud-config. I may switch this to use metadata however there isn't an easy way to read this data without another tool.\r\n * The known_tokens.csv file is passed as file injection via nova. It's then copied from the metadata location to /var/lib/kube-apiserver prior to the unit starting. This isn't ideal so I'm thinking of alternatives.\r\n\r\nI hard coded python2.7 in the scripts since the commands don't work in python3. Thoughts?\r\n\r\ncc @erictune ","created_at":"2015-05-08T22:08:22Z","updated_at":"2015-05-10T15:27:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"72bde62b8996fcfabf00aa2b9471ae061c447822","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/7998/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/7998/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/7998/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/statuses/571c14d66ded97811d5bf215654d248d61fe06e6","head":{"label":"doublerr:rackspace_fixes","ref":"rackspace_fixes","sha":"571c14d66ded97811d5bf215654d248d61fe06e6","user":{"login":"doublerr","id":1554646,"avatar_url":"https://avatars.githubusercontent.com/u/1554646?v=3","gravatar_id":"","url":"https://api.github.com/users/doublerr","html_url":"https://github.com/doublerr","followers_url":"https://api.github.com/users/doublerr/followers","following_url":"https://api.github.com/users/doublerr/following{/other_user}","gists_url":"https://api.github.com/users/doublerr/gists{/gist_id}","starred_url":"https://api.github.com/users/doublerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doublerr/subscriptions","organizations_url":"https://api.github.com/users/doublerr/orgs","repos_url":"https://api.github.com/users/doublerr/repos","events_url":"https://api.github.com/users/doublerr/events{/privacy}","received_events_url":"https://api.github.com/users/doublerr/received_events","type":"User","site_admin":false},"repo":{"id":22079330,"name":"kubernetes","full_name":"doublerr/kubernetes","owner":{"login":"doublerr","id":1554646,"avatar_url":"https://avatars.githubusercontent.com/u/1554646?v=3","gravatar_id":"","url":"https://api.github.com/users/doublerr","html_url":"https://github.com/doublerr","followers_url":"https://api.github.com/users/doublerr/followers","following_url":"https://api.github.com/users/doublerr/following{/other_user}","gists_url":"https://api.github.com/users/doublerr/gists{/gist_id}","starred_url":"https://api.github.com/users/doublerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doublerr/subscriptions","organizations_url":"https://api.github.com/users/doublerr/orgs","repos_url":"https://api.github.com/users/doublerr/repos","events_url":"https://api.github.com/users/doublerr/events{/privacy}","received_events_url":"https://api.github.com/users/doublerr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/doublerr/kubernetes","description":"Container Cluster Manager","fork":true,"url":"https://api.github.com/repos/doublerr/kubernetes","forks_url":"https://api.github.com/repos/doublerr/kubernetes/forks","keys_url":"https://api.github.com/repos/doublerr/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/doublerr/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/doublerr/kubernetes/teams","hooks_url":"https://api.github.com/repos/doublerr/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/doublerr/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/doublerr/kubernetes/events","assignees_url":"https://api.github.com/repos/doublerr/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/doublerr/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/doublerr/kubernetes/tags","blobs_url":"https://api.github.com/repos/doublerr/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/doublerr/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/doublerr/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/doublerr/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/doublerr/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/doublerr/kubernetes/languages","stargazers_url":"https://api.github.com/repos/doublerr/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/doublerr/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/doublerr/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/doublerr/kubernetes/subscription","commits_url":"https://api.github.com/repos/doublerr/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/doublerr/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/doublerr/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/doublerr/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/doublerr/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/doublerr/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/doublerr/kubernetes/merges","archive_url":"https://api.github.com/repos/doublerr/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/doublerr/kubernetes/downloads","issues_url":"https://api.github.com/repos/doublerr/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/doublerr/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/doublerr/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/doublerr/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/doublerr/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/doublerr/kubernetes/releases{/id}","created_at":"2014-07-21T20:39:39Z","updated_at":"2015-05-05T22:16:17Z","pushed_at":"2015-05-08T21:59:30Z","git_url":"git://github.com/doublerr/kubernetes.git","ssh_url":"git@github.com:doublerr/kubernetes.git","clone_url":"https://github.com/doublerr/kubernetes.git","svn_url":"https://github.com/doublerr/kubernetes","homepage":null,"size":51801,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"b02149d3d2bf850aa7294ab91877a8682bec8435","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":20580498,"name":"kubernetes","full_name":"GoogleCloudPlatform/kubernetes","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/kubernetes","description":"Container Cluster Manager from Google","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/releases{/id}","created_at":"2014-06-06T22:56:04Z","updated_at":"2015-05-10T13:08:44Z","pushed_at":"2015-05-10T15:25:28Z","git_url":"git://github.com/GoogleCloudPlatform/kubernetes.git","ssh_url":"git@github.com:GoogleCloudPlatform/kubernetes.git","clone_url":"https://github.com/GoogleCloudPlatform/kubernetes.git","svn_url":"https://github.com/GoogleCloudPlatform/kubernetes","homepage":"http://kubernetes.io","size":258111,"stargazers_count":7574,"watchers_count":7574,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1539,"mirror_url":null,"open_issues_count":1075,"forks":1539,"open_issues":1075,"watchers":7574,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/7998"},"html":{"href":"https://github.com/GoogleCloudPlatform/kubernetes/pull/7998"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/7998"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/7998/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/7998/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/7998/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/statuses/571c14d66ded97811d5bf215654d248d61fe06e6"}}}}