{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments/38287508","id":38287508,"diff_hunk":"@@ -0,0 +1,190 @@\n+<!-- BEGIN MUNGE: UNVERSIONED_WARNING -->\n+\n+<!-- BEGIN STRIP_FOR_RELEASE -->\n+\n+<img src=\"http://kubernetes.io/img/warning.png\" alt=\"WARNING\"\n+     width=\"25\" height=\"25\">\n+<img src=\"http://kubernetes.io/img/warning.png\" alt=\"WARNING\"\n+     width=\"25\" height=\"25\">\n+<img src=\"http://kubernetes.io/img/warning.png\" alt=\"WARNING\"\n+     width=\"25\" height=\"25\">\n+<img src=\"http://kubernetes.io/img/warning.png\" alt=\"WARNING\"\n+     width=\"25\" height=\"25\">\n+<img src=\"http://kubernetes.io/img/warning.png\" alt=\"WARNING\"\n+     width=\"25\" height=\"25\">\n+\n+<h2>PLEASE NOTE: This document applies to the HEAD of the source tree</h2>\n+\n+If you are using a released version of Kubernetes, you should\n+refer to the docs that go with that version.\n+\n+<strong>\n+The latest 1.0.x release of this document can be found\n+[here](http://releases.k8s.io/release-1.0/docs/proposals/logdir-volume.md).\n+\n+Documentation for other releases can be found at\n+[releases.k8s.io](http://releases.k8s.io).\n+</strong>\n+--\n+\n+<!-- END STRIP_FOR_RELEASE -->\n+\n+<!-- END MUNGE: UNVERSIONED_WARNING -->\n+\n+# LogDir Volume\n+\n+## Abstract\n+\n+A proposal for implementing a new type of volume: `LogDir`. A `LogDir` volume can preserve and manage a pod's log files.\n+\n+Several existing issues and PRs were already created regarding that particular subject:\n+* Collect logfiles inside the container [#12567](https://github.com/kubernetes/kubernetes/issues/12567)\n+* Add LogDir volume plugin [#13010](https://github.com/kubernetes/kubernetes/pull/13010#issuecomment-133997188)\n+\n+Author: WuLonghui (@wulonghui)\n+\n+## Motivation\n+\n+Some applications will write log to files, we should use a Kubernetes volume\n+to preserve the log files, since the vlome supported currently is not very appropriate(refer to [#12567](https://github.com/kubernetes/kubernetes/issues/12567)), so need to add a new type of volume: `LogDir`. It can add some useful infomation to make logging agent easy to collect the logs, also we can manage the log files(like log rotation and maximum log file sizes).\n+\n+## Implementation\n+\n+`LogDir` volume is similar to `EmptyDir` volume, so they have the same implementation currently.\n+The biggest difference between them is mount point:\n+\n+```\n+* EmptyDir: <kubelet_root_dir>/pods/<pod_id>/volumes/kubernetes.io~empty-dir/<volume_name>\n+* LogDir:   <kubelet_root_dir>/pods/<pod_id>/volumes/kubernetes.io~log-dir/<volume_name>/<pod_full_name>\n+```\n+\n+As we can see, `emptyDir` volume add a directory level: `pod_full_name`, the purpose is to make logging agent(e.g.Fluentd) easy to add tag by `pod_full_name`.\n+\n+Add the following content to `api.VolumeSource` struct:\n+\n+```\n+type VolumeSource struct {\t\n+    ...\n+\t// LogDir represents a log directory that preserves a pod's log files.\n+\tLogDir *LogDirVolumeSource `json:\"logDir,omitempty\"`\n+\t...\n+}\n+\n+// LogDirVolumeSource represents an log directory for a pod.\n+type LogDirVolumeSource struct {\n+\t// TODO: Support log rotation and maximum log file sizes, etc.\n+\t// Optional: what type of storage medium should back this directory.\n+\t// The default is \"\" which means to use the node's default medium.\n+\tMedium StorageMedium `json:\"medium\"`\n+}\n+```\n+\n+Add  `logDirPlugin` to implementation `volume.VolumePlugin` interface:\n+\n+```\n+type logDirPlugin struct {\n+\thost volume.VolumeHost\n+}\n+\n+const (\n+\tlogDirPluginName = \"kubernetes.io/log-dir\"\n+)\n+\n+func (plugin *logDirPlugin) Init(host volume.VolumeHost) {\n+\tplugin.host = host\n+}\n+\n+func (plugin *logDirPlugin) Name() string {\n+\treturn logDirPluginName\n+}\n+\n+func (plugin *logDirPlugin) CanSupport(spec *volume.Spec) bool {\n+\tif spec.VolumeSource.LogDir != nil {\n+\t\treturn true\n+\t}\n+\treturn false\n+}\n+\n+func (plugin *logDirPlugin) NewBuilder(spec *volume.Spec, pod *api.Pod, opts volume.VolumeOptions, mounter mount.Interface) (volume.Builder, error) {\n+\treturn plugin.newBuilderInternal(spec, pod, mounter, &realMountDetector{mounter}, opts, newChconRunner())\n+}\n+\n+func (plugin *logDirPlugin) NewCleaner(volName string, podUID types.UID, mounter mount.Interface) (volume.Cleaner, error) {\n+\t// Inject real implementations here, test through the internal function.\n+\treturn plugin.newCleanerInternal(volName, podUID, mounter, &realMountDetector{mounter})\n+}\n+```\n+\n+## Integrated with Fluentd\n+\n+We can use Fluentd to collect log files in `LogDir` volume. Fluentd should be installed on each Kubernetes node, and it will watch `LogDir` volume's path, the Fluentd's configuration as follows(we use kubelet_root_dir's defalut value /var/lib/kubelet, ):\n+\n+```\n+<source>\n+  type tail\n+  format none\n+  time_key time\n+  path /var/lib/kubelet/pods/*/volumes/kubernetes.io~log-dir/**/*.log\n+  pos_file /lib/pods.log.pos","path":"docs/proposals/logdir-volume.md","position":128,"original_position":128,"commit_id":"f0d963f687e579825b9d4ed223fc22889b2fa2d9","original_commit_id":"f0d963f687e579825b9d4ed223fc22889b2fa2d9","user":{"login":"wulonghui","id":5194128,"avatar_url":"https://avatars.githubusercontent.com/u/5194128?v=3","gravatar_id":"","url":"https://api.github.com/users/wulonghui","html_url":"https://github.com/wulonghui","followers_url":"https://api.github.com/users/wulonghui/followers","following_url":"https://api.github.com/users/wulonghui/following{/other_user}","gists_url":"https://api.github.com/users/wulonghui/gists{/gist_id}","starred_url":"https://api.github.com/users/wulonghui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wulonghui/subscriptions","organizations_url":"https://api.github.com/users/wulonghui/orgs","repos_url":"https://api.github.com/users/wulonghui/repos","events_url":"https://api.github.com/users/wulonghui/events{/privacy}","received_events_url":"https://api.github.com/users/wulonghui/received_events","type":"User","site_admin":false},"body":"yes, this is a mistake.","created_at":"2015-08-31T06:40:41Z","updated_at":"2015-08-31T06:40:41Z","html_url":"https://github.com/kubernetes/kubernetes/pull/13010#discussion_r38287508","pull_request_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13010","_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments/38287508"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/13010#discussion_r38287508"},"pull_request":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13010"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13010","id":42997716,"html_url":"https://github.com/kubernetes/kubernetes/pull/13010","diff_url":"https://github.com/kubernetes/kubernetes/pull/13010.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/13010.patch","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/13010","number":13010,"state":"open","locked":false,"title":"Add LogDir volume plugin","user":{"login":"wulonghui","id":5194128,"avatar_url":"https://avatars.githubusercontent.com/u/5194128?v=3","gravatar_id":"","url":"https://api.github.com/users/wulonghui","html_url":"https://github.com/wulonghui","followers_url":"https://api.github.com/users/wulonghui/followers","following_url":"https://api.github.com/users/wulonghui/following{/other_user}","gists_url":"https://api.github.com/users/wulonghui/gists{/gist_id}","starred_url":"https://api.github.com/users/wulonghui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wulonghui/subscriptions","organizations_url":"https://api.github.com/users/wulonghui/orgs","repos_url":"https://api.github.com/users/wulonghui/repos","events_url":"https://api.github.com/users/wulonghui/events{/privacy}","received_events_url":"https://api.github.com/users/wulonghui/received_events","type":"User","site_admin":false},"body":"\r\n# LogDir Volume\r\n\r\n## Abstract\r\n\r\nA proposal for implementing a new type of volume: `LogDir`. A `LogDir` volume can preserve and manage a pod's log files.\r\n\r\nSeveral existing issues and PRs were already created regarding that particular subject:\r\n* Collect logfiles inside the container [#12567](https://github.com/kubernetes/kubernetes/issues/12567)\r\n* Add LogDir volume plugin [#13010](https://github.com/kubernetes/kubernetes/pull/13010#issuecomment-133997188)\r\n\r\nAuthor: WuLonghui (@wulonghui)\r\n\r\n## Motivation\r\n\r\nSome applications will write log to files, we should use a Kubernetes volume\r\nto preserve the log files, since the vlome supported currently is not very appropriate(refer to [#12567](https://github.com/kubernetes/kubernetes/issues/12567)), so need to add a new type of volume: `LogDir`. It can add some useful infomation to make logging agent easy to collect the logs, also we can manage the log files(like log rotation and maximum log file sizes).\r\n\r\n## Implementation\r\n\r\n`LogDir` volume is similar to `EmptyDir` volume, so they have the same implementation currently.\r\nThe biggest difference between them is mount point:\r\n\r\n```\r\n* EmptyDir: <kubelet_root_dir>/pods/<pod_id>/volumes/kubernetes.io~empty-dir/<volume_name>\r\n* LogDir:   <kubelet_root_dir>/pods/<pod_id>/volumes/kubernetes.io~log-dir/<volume_name>/<pod_full_name>\r\n```\r\n\r\nAs we can see, `emptyDir` volume add a directory level: `pod_full_name`, the purpose is to make logging agent(e.g.Fluentd) easy to add tag by `pod_full_name`.\r\n\r\nAdd the following content to `api.VolumeSource` struct:\r\n\r\n```\r\ntype VolumeSource struct {\t\r\n    ...\r\n\t// LogDir represents a log directory that preserves a pod's log files.\r\n\tLogDir *LogDirVolumeSource `json:\"logDir,omitempty\"`\r\n\t...\r\n}\r\n\r\n// LogDirVolumeSource represents an log directory for a pod.\r\ntype LogDirVolumeSource struct {\r\n\t// TODO: Support log rotation and maximum log file sizes, etc.\r\n\t// Optional: what type of storage medium should back this directory.\r\n\t// The default is \"\" which means to use the node's default medium.\r\n\tMedium StorageMedium `json:\"medium\"`\r\n}\r\n```\r\n\r\nAdd  `logDirPlugin` to implementation `volume.VolumePlugin` interface:\r\n\r\n```\r\ntype logDirPlugin struct {\r\n\thost volume.VolumeHost\r\n}\r\n\r\nconst (\r\n\tlogDirPluginName = \"kubernetes.io/log-dir\"\r\n)\r\n\r\nfunc (plugin *logDirPlugin) Init(host volume.VolumeHost) {\r\n\tplugin.host = host\r\n}\r\n\r\nfunc (plugin *logDirPlugin) Name() string {\r\n\treturn logDirPluginName\r\n}\r\n\r\nfunc (plugin *logDirPlugin) CanSupport(spec *volume.Spec) bool {\r\n\tif spec.VolumeSource.LogDir != nil {\r\n\t\treturn true\r\n\t}\r\n\treturn false\r\n}\r\n\r\nfunc (plugin *logDirPlugin) NewBuilder(spec *volume.Spec, pod *api.Pod, opts volume.VolumeOptions, mounter mount.Interface) (volume.Builder, error) {\r\n\treturn plugin.newBuilderInternal(spec, pod, mounter, &realMountDetector{mounter}, opts, newChconRunner())\r\n}\r\n\r\nfunc (plugin *logDirPlugin) NewCleaner(volName string, podUID types.UID, mounter mount.Interface) (volume.Cleaner, error) {\r\n\t// Inject real implementations here, test through the internal function.\r\n\treturn plugin.newCleanerInternal(volName, podUID, mounter, &realMountDetector{mounter})\r\n}\r\n```\r\n\r\n## Integrated with Fluentd\r\nWe can use Fluentd to collect log files in `LogDir` volume. Fluentd should be installed on each Kubernetes node, and it will watch `LogDir` volume's path, the Fluentd's configuration as follows(we use kubelet_root_dir's defalut value /var/lib/kubelet, ):\r\n```\r\n<source>\r\n  type tail\r\n  format none\r\n  time_key time\r\n  path /var/lib/kubelet/pods/*/volumes/kubernetes.io~log-dir/**/*.log\r\n  pos_file /lib/pods.log.pos\r\n  time_format %Y-%m-%dT%H:%M:%S\r\n  tag reform.*\r\n  read_from_head true\r\n</source>\r\n\r\n<match reform.**>\r\n  type record_reformer\r\n  enable_ruby true\r\n  tag kubernetes.${hostname}.${tag_suffix[10]}\r\n</match>\r\n\r\n<match **>\r\n  type stdout\r\n</match>\r\n```\r\nThe Fluentd will tail any files in the `LogDir` volume, and add tag `kubernetes.<node_host_name>.<pod_full_name>.<file_name>`. We only print the logs to stdout,  also can forward to logging storage endpoint(e.g Elasticsearch).\r\nFor example, we have a application writes log files:\r\n```\r\napiVersion: v1\r\nkind: Pod\r\nmetadata:\r\n  name: my-app\r\nspec:\r\n  containers:\r\n  - name: container1\r\n    image: ubuntu:14.04\r\n    command: [\"bash\", \"-c\", \"i=\\\"0\\\"; while true; do echo \\\"`hostname`_container1: $i \\\"; date --rfc-3339 ns >> /varlog/container1.log; sleep 4; i=$[$i+1]; done\"]\r\n    volumeMounts:\r\n    - name: log-storage\r\n      mountPath: /varlog\r\n    securityContext:\r\n        privileged: true\r\n  volumes:\r\n  - name: log-storage\r\n    logDir: {}\r\n```\r\n\r\nThen the Fluentd prints the logs to stdout:\r\n```\r\n2015-08-25 04:51:38 +0000 kubernetes.906e932af286.my-app_default.container1.log: {\"message\":\"2015-08-25 04:50:52.311599344+00:00\"}\r\n2015-08-25 04:51:38 +0000 kubernetes.906e932af286.my-app_default.container1.log: {\"message\":\"2015-08-25 04:50:56.316424922+00:00\"}\r\n2015-08-25 04:51:38 +0000 kubernetes.906e932af286.my-app_default.container1.log: {\"message\":\"2015-08-25 04:51:00.321194546+00:00\"}\r\n2015-08-25 04:51:38 +0000 kubernetes.906e932af286.my-app_default.container.log: {\"message\":\"2015-08-25 04:51:04.326128803+00:00\"}\r\n2015-08-25 04:51:38 +0000 kubernetes.906e932af286.my-app_default.container.log: {\"message\":\"2015-08-25 04:51:08.330667876+00:00\"}\r\n2015-08-25 04:51:38 +0000 kubernetes.906e932af286.my-app_default.container.log: {\"message\":\"2015-08-25 04:51:12.336370883+00:00\"}\r\n```\r\n\r\n## Future work\r\n\r\n*  Be able to limit maximum log file sizes\r\n*  Be able to support log rotation","created_at":"2015-08-21T02:07:37Z","updated_at":"2015-08-31T06:40:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f0d252e891c31d4df49c6208ea3b17e50e3725e9","assignee":{"login":"brendandburns","id":5751682,"avatar_url":"https://avatars.githubusercontent.com/u/5751682?v=3","gravatar_id":"","url":"https://api.github.com/users/brendandburns","html_url":"https://github.com/brendandburns","followers_url":"https://api.github.com/users/brendandburns/followers","following_url":"https://api.github.com/users/brendandburns/following{/other_user}","gists_url":"https://api.github.com/users/brendandburns/gists{/gist_id}","starred_url":"https://api.github.com/users/brendandburns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendandburns/subscriptions","organizations_url":"https://api.github.com/users/brendandburns/orgs","repos_url":"https://api.github.com/users/brendandburns/repos","events_url":"https://api.github.com/users/brendandburns/events{/privacy}","received_events_url":"https://api.github.com/users/brendandburns/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13010/commits","review_comments_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13010/comments","review_comment_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/13010/comments","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes/statuses/f0d963f687e579825b9d4ed223fc22889b2fa2d9","head":{"label":"wulonghui:wulonghui-patch-2","ref":"wulonghui-patch-2","sha":"f0d963f687e579825b9d4ed223fc22889b2fa2d9","user":{"login":"wulonghui","id":5194128,"avatar_url":"https://avatars.githubusercontent.com/u/5194128?v=3","gravatar_id":"","url":"https://api.github.com/users/wulonghui","html_url":"https://github.com/wulonghui","followers_url":"https://api.github.com/users/wulonghui/followers","following_url":"https://api.github.com/users/wulonghui/following{/other_user}","gists_url":"https://api.github.com/users/wulonghui/gists{/gist_id}","starred_url":"https://api.github.com/users/wulonghui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wulonghui/subscriptions","organizations_url":"https://api.github.com/users/wulonghui/orgs","repos_url":"https://api.github.com/users/wulonghui/repos","events_url":"https://api.github.com/users/wulonghui/events{/privacy}","received_events_url":"https://api.github.com/users/wulonghui/received_events","type":"User","site_admin":false},"repo":{"id":39538988,"name":"kubernetes","full_name":"wulonghui/kubernetes","owner":{"login":"wulonghui","id":5194128,"avatar_url":"https://avatars.githubusercontent.com/u/5194128?v=3","gravatar_id":"","url":"https://api.github.com/users/wulonghui","html_url":"https://github.com/wulonghui","followers_url":"https://api.github.com/users/wulonghui/followers","following_url":"https://api.github.com/users/wulonghui/following{/other_user}","gists_url":"https://api.github.com/users/wulonghui/gists{/gist_id}","starred_url":"https://api.github.com/users/wulonghui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wulonghui/subscriptions","organizations_url":"https://api.github.com/users/wulonghui/orgs","repos_url":"https://api.github.com/users/wulonghui/repos","events_url":"https://api.github.com/users/wulonghui/events{/privacy}","received_events_url":"https://api.github.com/users/wulonghui/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wulonghui/kubernetes","description":"Container Cluster Manager from Google","fork":true,"url":"https://api.github.com/repos/wulonghui/kubernetes","forks_url":"https://api.github.com/repos/wulonghui/kubernetes/forks","keys_url":"https://api.github.com/repos/wulonghui/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wulonghui/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wulonghui/kubernetes/teams","hooks_url":"https://api.github.com/repos/wulonghui/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/wulonghui/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/wulonghui/kubernetes/events","assignees_url":"https://api.github.com/repos/wulonghui/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/wulonghui/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/wulonghui/kubernetes/tags","blobs_url":"https://api.github.com/repos/wulonghui/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wulonghui/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wulonghui/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/wulonghui/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wulonghui/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/wulonghui/kubernetes/languages","stargazers_url":"https://api.github.com/repos/wulonghui/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/wulonghui/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/wulonghui/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/wulonghui/kubernetes/subscription","commits_url":"https://api.github.com/repos/wulonghui/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/wulonghui/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/wulonghui/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/wulonghui/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/wulonghui/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/wulonghui/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wulonghui/kubernetes/merges","archive_url":"https://api.github.com/repos/wulonghui/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wulonghui/kubernetes/downloads","issues_url":"https://api.github.com/repos/wulonghui/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/wulonghui/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/wulonghui/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/wulonghui/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wulonghui/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/wulonghui/kubernetes/releases{/id}","created_at":"2015-07-23T01:31:45Z","updated_at":"2015-07-23T01:31:52Z","pushed_at":"2015-08-25T05:27:13Z","git_url":"git://github.com/wulonghui/kubernetes.git","ssh_url":"git@github.com:wulonghui/kubernetes.git","clone_url":"https://github.com/wulonghui/kubernetes.git","svn_url":"https://github.com/wulonghui/kubernetes","homepage":"http://kubernetes.io","size":101623,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kubernetes:master","ref":"master","sha":"a945785409d5b68f3a2721d2209300edb5abf1ce","user":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars.githubusercontent.com/u/13629408?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"repo":{"id":20580498,"name":"kubernetes","full_name":"kubernetes/kubernetes","owner":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars.githubusercontent.com/u/13629408?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kubernetes/kubernetes","description":"Container Cluster Manager from Google","fork":false,"url":"https://api.github.com/repos/kubernetes/kubernetes","forks_url":"https://api.github.com/repos/kubernetes/kubernetes/forks","keys_url":"https://api.github.com/repos/kubernetes/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes/kubernetes/teams","hooks_url":"https://api.github.com/repos/kubernetes/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes/kubernetes/events","assignees_url":"https://api.github.com/repos/kubernetes/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes/kubernetes/tags","blobs_url":"https://api.github.com/repos/kubernetes/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes/kubernetes/languages","stargazers_url":"https://api.github.com/repos/kubernetes/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/kubernetes/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/kubernetes/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/kubernetes/kubernetes/subscription","commits_url":"https://api.github.com/repos/kubernetes/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes/kubernetes/merges","archive_url":"https://api.github.com/repos/kubernetes/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes/kubernetes/downloads","issues_url":"https://api.github.com/repos/kubernetes/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes/kubernetes/releases{/id}","created_at":"2014-06-06T22:56:04Z","updated_at":"2015-08-31T05:02:01Z","pushed_at":"2015-08-31T06:07:34Z","git_url":"git://github.com/kubernetes/kubernetes.git","ssh_url":"git@github.com:kubernetes/kubernetes.git","clone_url":"https://github.com/kubernetes/kubernetes.git","svn_url":"https://github.com/kubernetes/kubernetes","homepage":"http://kubernetes.io","size":367638,"stargazers_count":9961,"watchers_count":9961,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2429,"mirror_url":null,"open_issues_count":1676,"forks":2429,"open_issues":1676,"watchers":9961,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13010"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/13010"},"issue":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/13010"},"comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/13010/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13010/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13010/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/kubernetes/statuses/f0d963f687e579825b9d4ed223fc22889b2fa2d9"}}}}