{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments/40604961","id":40604961,"diff_hunk":"@@ -0,0 +1,63 @@\n+apiVersion: v1\n+kind: Service\n+id: pxc-node1\n+metadata:\n+  name: pxc-node1\n+spec:\n+  ports:\n+    - port: 3306\n+      targetPort: 3306\n+      name: mysql\n+    - port: 4444\n+      targetPort: 4444 \n+      name: state-snapshot-transfer\n+    - port: 4567\n+      targetPort: 4567\n+      name: replication-traffic \n+    - port: 4568\n+      targetPort: 4568 \n+      name: incremental-state-transfer \n+  selector:\n+    name: pxc-node1 \n+labels: \n+  name: pxc-node1","path":"examples/mysql-galera/pxc-node1.yaml","position":23,"original_position":23,"commit_id":"16b3158ebba902a1b5ea7471f59aef665b073706","original_commit_id":"16b3158ebba902a1b5ea7471f59aef665b073706","user":{"login":"timstclair","id":3272040,"avatar_url":"https://avatars.githubusercontent.com/u/3272040?v=3","gravatar_id":"","url":"https://api.github.com/users/timstclair","html_url":"https://github.com/timstclair","followers_url":"https://api.github.com/users/timstclair/followers","following_url":"https://api.github.com/users/timstclair/following{/other_user}","gists_url":"https://api.github.com/users/timstclair/gists{/gist_id}","starred_url":"https://api.github.com/users/timstclair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timstclair/subscriptions","organizations_url":"https://api.github.com/users/timstclair/orgs","repos_url":"https://api.github.com/users/timstclair/repos","events_url":"https://api.github.com/users/timstclair/events{/privacy}","received_events_url":"https://api.github.com/users/timstclair/received_events","type":"User","site_admin":false},"body":"(nit) Avoid using \"name\" as a label key, as it can lead to confusion.","created_at":"2015-09-28T21:00:38Z","updated_at":"2015-09-28T21:00:38Z","html_url":"https://github.com/kubernetes/kubernetes/pull/13729#discussion_r40604961","pull_request_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13729","_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments/40604961"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/13729#discussion_r40604961"},"pull_request":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13729"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13729","id":44544146,"html_url":"https://github.com/kubernetes/kubernetes/pull/13729","diff_url":"https://github.com/kubernetes/kubernetes/pull/13729.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/13729.patch","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/13729","number":13729,"state":"open","locked":false,"title":"Added Galera example to kubernetes.","user":{"login":"CaptTofu","id":106670,"avatar_url":"https://avatars.githubusercontent.com/u/106670?v=3","gravatar_id":"","url":"https://api.github.com/users/CaptTofu","html_url":"https://github.com/CaptTofu","followers_url":"https://api.github.com/users/CaptTofu/followers","following_url":"https://api.github.com/users/CaptTofu/following{/other_user}","gists_url":"https://api.github.com/users/CaptTofu/gists{/gist_id}","starred_url":"https://api.github.com/users/CaptTofu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaptTofu/subscriptions","organizations_url":"https://api.github.com/users/CaptTofu/orgs","repos_url":"https://api.github.com/users/CaptTofu/repos","events_url":"https://api.github.com/users/CaptTofu/events{/privacy}","received_events_url":"https://api.github.com/users/CaptTofu/received_events","type":"User","site_admin":false},"body":"Greetings! I submitted an issue ticket (#13677) and was encouraged to submit a pull request. I am contributing under the corp CLA for HP. \r\n\r\nThis is a fully functional example of how to create a MySQL Galera cluster (3 pods, on container each) on Kubernetes. It utilizes Percona XtraDB cluster for the image and provides the option to use either pods or replication controllers for this. \r\n\r\nI gave a demonstration of this cluster at Percona Live and have since recently updated it to use the v1 API as well as multi-port services.","created_at":"2015-09-09T12:37:42Z","updated_at":"2015-09-28T21:00:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"855f6f4f844a3a981c569acaa3a34ec471c7bac2","assignee":{"login":"timstclair","id":3272040,"avatar_url":"https://avatars.githubusercontent.com/u/3272040?v=3","gravatar_id":"","url":"https://api.github.com/users/timstclair","html_url":"https://github.com/timstclair","followers_url":"https://api.github.com/users/timstclair/followers","following_url":"https://api.github.com/users/timstclair/following{/other_user}","gists_url":"https://api.github.com/users/timstclair/gists{/gist_id}","starred_url":"https://api.github.com/users/timstclair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timstclair/subscriptions","organizations_url":"https://api.github.com/users/timstclair/orgs","repos_url":"https://api.github.com/users/timstclair/repos","events_url":"https://api.github.com/users/timstclair/events{/privacy}","received_events_url":"https://api.github.com/users/timstclair/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13729/commits","review_comments_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13729/comments","review_comment_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/13729/comments","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes/statuses/16b3158ebba902a1b5ea7471f59aef665b073706","head":{"label":"CaptTofu:mysql-galera-example","ref":"mysql-galera-example","sha":"16b3158ebba902a1b5ea7471f59aef665b073706","user":{"login":"CaptTofu","id":106670,"avatar_url":"https://avatars.githubusercontent.com/u/106670?v=3","gravatar_id":"","url":"https://api.github.com/users/CaptTofu","html_url":"https://github.com/CaptTofu","followers_url":"https://api.github.com/users/CaptTofu/followers","following_url":"https://api.github.com/users/CaptTofu/following{/other_user}","gists_url":"https://api.github.com/users/CaptTofu/gists{/gist_id}","starred_url":"https://api.github.com/users/CaptTofu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaptTofu/subscriptions","organizations_url":"https://api.github.com/users/CaptTofu/orgs","repos_url":"https://api.github.com/users/CaptTofu/repos","events_url":"https://api.github.com/users/CaptTofu/events{/privacy}","received_events_url":"https://api.github.com/users/CaptTofu/received_events","type":"User","site_admin":false},"repo":{"id":21357871,"name":"kubernetes","full_name":"CaptTofu/kubernetes","owner":{"login":"CaptTofu","id":106670,"avatar_url":"https://avatars.githubusercontent.com/u/106670?v=3","gravatar_id":"","url":"https://api.github.com/users/CaptTofu","html_url":"https://github.com/CaptTofu","followers_url":"https://api.github.com/users/CaptTofu/followers","following_url":"https://api.github.com/users/CaptTofu/following{/other_user}","gists_url":"https://api.github.com/users/CaptTofu/gists{/gist_id}","starred_url":"https://api.github.com/users/CaptTofu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaptTofu/subscriptions","organizations_url":"https://api.github.com/users/CaptTofu/orgs","repos_url":"https://api.github.com/users/CaptTofu/repos","events_url":"https://api.github.com/users/CaptTofu/events{/privacy}","received_events_url":"https://api.github.com/users/CaptTofu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CaptTofu/kubernetes","description":"Container Cluster Manager","fork":true,"url":"https://api.github.com/repos/CaptTofu/kubernetes","forks_url":"https://api.github.com/repos/CaptTofu/kubernetes/forks","keys_url":"https://api.github.com/repos/CaptTofu/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CaptTofu/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CaptTofu/kubernetes/teams","hooks_url":"https://api.github.com/repos/CaptTofu/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/CaptTofu/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/CaptTofu/kubernetes/events","assignees_url":"https://api.github.com/repos/CaptTofu/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/CaptTofu/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/CaptTofu/kubernetes/tags","blobs_url":"https://api.github.com/repos/CaptTofu/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CaptTofu/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CaptTofu/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/CaptTofu/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CaptTofu/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/CaptTofu/kubernetes/languages","stargazers_url":"https://api.github.com/repos/CaptTofu/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/CaptTofu/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/CaptTofu/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/CaptTofu/kubernetes/subscription","commits_url":"https://api.github.com/repos/CaptTofu/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/CaptTofu/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/CaptTofu/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/CaptTofu/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/CaptTofu/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/CaptTofu/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CaptTofu/kubernetes/merges","archive_url":"https://api.github.com/repos/CaptTofu/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CaptTofu/kubernetes/downloads","issues_url":"https://api.github.com/repos/CaptTofu/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/CaptTofu/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/CaptTofu/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/CaptTofu/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CaptTofu/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/CaptTofu/kubernetes/releases{/id}","created_at":"2014-06-30T16:24:48Z","updated_at":"2014-06-30T14:22:10Z","pushed_at":"2015-09-26T18:05:22Z","git_url":"git://github.com/CaptTofu/kubernetes.git","ssh_url":"git@github.com:CaptTofu/kubernetes.git","clone_url":"https://github.com/CaptTofu/kubernetes.git","svn_url":"https://github.com/CaptTofu/kubernetes","homepage":null,"size":102885,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"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":"kubernetes:master","ref":"master","sha":"d49ca164ef27e8cb2661feb126f7de948c853b10","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-09-28T19:50:18Z","pushed_at":"2015-09-28T20:52:48Z","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":438865,"stargazers_count":10476,"watchers_count":10476,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2610,"mirror_url":null,"open_issues_count":1939,"forks":2610,"open_issues":1939,"watchers":10476,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13729"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/13729"},"issue":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/13729"},"comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/13729/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13729/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13729/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/kubernetes/statuses/16b3158ebba902a1b5ea7471f59aef665b073706"}}}}