{"action":"created","comment":{"url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/pulls/comments/88304644","pull_request_review_id":8882362,"id":88304644,"diff_hunk":"@@ -0,0 +1,191 @@\n+apiVersion: v1\n+kind: ServiceAccount\n+metadata:\n+  name: elasticsearch\n+---\n+apiVersion: v1\n+kind: Service\n+metadata:\n+  name: elasticsearch\n+  labels:\n+    app: elasticsearch\n+spec:\n+  ports:\n+  - port: 9200\n+    name: http\n+  clusterIP: None\n+  selector:\n+    name: elasticsearch-data\n+---\n+apiVersion: v1\n+kind: Service\n+metadata:\n+  name: elasticsearch-cluster\n+  labels:\n+    app: elasticsearch-cluster\n+spec:\n+  ports:\n+  - port: 9300\n+    name: cluster-comms\n+  clusterIP: None\n+  selector:\n+    app: elasticsearch\n+---\n+apiVersion: apps/v1alpha1\n+kind: PetSet\n+metadata:\n+  name: elasticsearch-master\n+spec:\n+  serviceName: \"elasticsearch-master\"\n+  replicas: 3\n+  template:\n+    metadata:\n+      labels:\n+        app: elasticsearch\n+        name: elasticsearch-master\n+      annotations:\n+        pod.alpha.kubernetes.io/initialized: \"true\"\n+        pod.alpha.kubernetes.io/init-containers: '[\n+            {\n+                \"name\": \"max-map-count-set\",\n+                \"image\": \"quay.io/samsung_cnct/set_max_map_count:1.1\",\n+                \"imagePullPolicy\": \"Always\",\n+                \"volumeMounts\": [\n+                    {\n+                        \"name\": \"hostproc\",\n+                        \"mountPath\": \"/hostproc\"\n+                    }\n+                ]\n+            }]'\n+    spec:\n+      serviceAccount: elasticsearch\n+      serviceAccountName: elasticsearch\n+      containers:\n+      - name: elasticsearch\n+        image: quay.io/samsung_cnct/elasticsearch:0.1\n+        ports:\n+        - containerPort: 9300\n+        resources:\n+          limits:\n+            cpu: 500m\n+            memory: 4Gi\n+          requests:\n+            cpu: 500m\n+            memory: 4Gi\n+        env:\n+        - name: CLUSTER_NAME\n+          value: \"k8s-production\"\n+        - name: NODE_DATA\n+          value: \"false\"\n+        - name: NODE_MASTER\n+          value: \"true\"\n+        - name: SERVICE\n+          value: \"elasticsearch-cluster\"\n+        - name: ES_JAVA_OPTS\n+          value: \"-Xms3g -Xmx3g -Djava.net.preferIPv4Stack=true\"\n+        - name: KUBERNETES_NAMESPACE\n+          valueFrom:\n+            fieldRef:\n+              fieldPath: metadata.namespace\n+        - name: NODE_NAME\n+          valueFrom:\n+            fieldRef:\n+              fieldPath: metadata.name\n+        imagePullPolicy: Always\n+        volumeMounts:\n+        - name: esdata\n+          mountPath: /usr/share/elasticsearch/data\n+      volumes:\n+      - name: hostproc\n+        hostPath: \n+          path: /proc\n+  volumeClaimTemplates:\n+  - metadata:\n+      name: esdata\n+      annotations:\n+        volume.alpha.kubernetes.io/storage-class: anything\n+    spec:\n+      accessModes: [ \"ReadWriteOnce\" ]\n+      resources:\n+        requests:\n+          storage: 20Gi","path":"es.yaml","position":111,"original_position":111,"commit_id":"dd706bfabc26fd3be146b2bb8d08ed910b1ecc49","original_commit_id":"dd706bfabc26fd3be146b2bb8d08ed910b1ecc49","user":{"login":"coffeepac","id":677786,"avatar_url":"https://avatars.githubusercontent.com/u/677786?v=3","gravatar_id":"","url":"https://api.github.com/users/coffeepac","html_url":"https://github.com/coffeepac","followers_url":"https://api.github.com/users/coffeepac/followers","following_url":"https://api.github.com/users/coffeepac/following{/other_user}","gists_url":"https://api.github.com/users/coffeepac/gists{/gist_id}","starred_url":"https://api.github.com/users/coffeepac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coffeepac/subscriptions","organizations_url":"https://api.github.com/users/coffeepac/orgs","repos_url":"https://api.github.com/users/coffeepac/repos","events_url":"https://api.github.com/users/coffeepac/events{/privacy}","received_events_url":"https://api.github.com/users/coffeepac/received_events","type":"User","site_admin":false},"body":"arbitrary size so someone playing around with this doesn't create a bunch of 1TB drives.  can add a comment.","created_at":"2016-11-16T18:54:56Z","updated_at":"2016-11-16T18:54:56Z","html_url":"https://github.com/samsung-cnct/elasticsearch-kubernetes/pull/1#discussion_r88304644","pull_request_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/pulls/comments/88304644"},"html":{"href":"https://github.com/samsung-cnct/elasticsearch-kubernetes/pull/1#discussion_r88304644"},"pull_request":{"href":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/pulls/1","id":93874810,"html_url":"https://github.com/samsung-cnct/elasticsearch-kubernetes/pull/1","diff_url":"https://github.com/samsung-cnct/elasticsearch-kubernetes/pull/1.diff","patch_url":"https://github.com/samsung-cnct/elasticsearch-kubernetes/pull/1.patch","issue_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/issues/1","number":1,"state":"open","locked":false,"title":"Initial commit","user":{"login":"coffeepac","id":677786,"avatar_url":"https://avatars.githubusercontent.com/u/677786?v=3","gravatar_id":"","url":"https://api.github.com/users/coffeepac","html_url":"https://github.com/coffeepac","followers_url":"https://api.github.com/users/coffeepac/followers","following_url":"https://api.github.com/users/coffeepac/following{/other_user}","gists_url":"https://api.github.com/users/coffeepac/gists{/gist_id}","starred_url":"https://api.github.com/users/coffeepac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coffeepac/subscriptions","organizations_url":"https://api.github.com/users/coffeepac/orgs","repos_url":"https://api.github.com/users/coffeepac/repos","events_url":"https://api.github.com/users/coffeepac/events{/privacy}","received_events_url":"https://api.github.com/users/coffeepac/received_events","type":"User","site_admin":false},"body":"this will create an elasticsearch cluster with 3 master nodes and 3 data nodes.  it also creates two services:  one which is cluster wide on port 9300 and one which only connects to the data nodes on 9200.  the master nodes should not be serving up anything on 9200 so don't let them.\r\n\r\nfull details for why this is the setup can be found in the design story:  ADA-5","created_at":"2016-11-15T23:59:32Z","updated_at":"2016-11-16T18:54:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f2bb83dc3e88288ff52ff104bfe4e6e4d8b66c05","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/pulls/1/commits","review_comments_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/pulls/1/comments","review_comment_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/issues/1/comments","statuses_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/statuses/dd706bfabc26fd3be146b2bb8d08ed910b1ecc49","head":{"label":"samsung-cnct:initial-commit","ref":"initial-commit","sha":"dd706bfabc26fd3be146b2bb8d08ed910b1ecc49","user":{"login":"samsung-cnct","id":11511065,"avatar_url":"https://avatars.githubusercontent.com/u/11511065?v=3","gravatar_id":"","url":"https://api.github.com/users/samsung-cnct","html_url":"https://github.com/samsung-cnct","followers_url":"https://api.github.com/users/samsung-cnct/followers","following_url":"https://api.github.com/users/samsung-cnct/following{/other_user}","gists_url":"https://api.github.com/users/samsung-cnct/gists{/gist_id}","starred_url":"https://api.github.com/users/samsung-cnct/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samsung-cnct/subscriptions","organizations_url":"https://api.github.com/users/samsung-cnct/orgs","repos_url":"https://api.github.com/users/samsung-cnct/repos","events_url":"https://api.github.com/users/samsung-cnct/events{/privacy}","received_events_url":"https://api.github.com/users/samsung-cnct/received_events","type":"Organization","site_admin":false},"repo":{"id":72865439,"name":"elasticsearch-kubernetes","full_name":"samsung-cnct/elasticsearch-kubernetes","owner":{"login":"samsung-cnct","id":11511065,"avatar_url":"https://avatars.githubusercontent.com/u/11511065?v=3","gravatar_id":"","url":"https://api.github.com/users/samsung-cnct","html_url":"https://github.com/samsung-cnct","followers_url":"https://api.github.com/users/samsung-cnct/followers","following_url":"https://api.github.com/users/samsung-cnct/following{/other_user}","gists_url":"https://api.github.com/users/samsung-cnct/gists{/gist_id}","starred_url":"https://api.github.com/users/samsung-cnct/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samsung-cnct/subscriptions","organizations_url":"https://api.github.com/users/samsung-cnct/orgs","repos_url":"https://api.github.com/users/samsung-cnct/repos","events_url":"https://api.github.com/users/samsung-cnct/events{/privacy}","received_events_url":"https://api.github.com/users/samsung-cnct/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/samsung-cnct/elasticsearch-kubernetes","description":"docker file and yamls for kubernetes deploys","fork":false,"url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes","forks_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/forks","keys_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/teams","hooks_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/hooks","issue_events_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/events","assignees_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/tags","blobs_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/languages","stargazers_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/stargazers","contributors_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/contributors","subscribers_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/subscribers","subscription_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/subscription","commits_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/merges","archive_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/downloads","issues_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/releases{/id}","deployments_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/deployments","created_at":"2016-11-04T16:28:11Z","updated_at":"2016-11-04T16:28:11Z","pushed_at":"2016-11-15T23:59:32Z","git_url":"git://github.com/samsung-cnct/elasticsearch-kubernetes.git","ssh_url":"git@github.com:samsung-cnct/elasticsearch-kubernetes.git","clone_url":"https://github.com/samsung-cnct/elasticsearch-kubernetes.git","svn_url":"https://github.com/samsung-cnct/elasticsearch-kubernetes","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"samsung-cnct:master","ref":"master","sha":"475fc5988935554e8a834c7a101bf2d2ea9fba39","user":{"login":"samsung-cnct","id":11511065,"avatar_url":"https://avatars.githubusercontent.com/u/11511065?v=3","gravatar_id":"","url":"https://api.github.com/users/samsung-cnct","html_url":"https://github.com/samsung-cnct","followers_url":"https://api.github.com/users/samsung-cnct/followers","following_url":"https://api.github.com/users/samsung-cnct/following{/other_user}","gists_url":"https://api.github.com/users/samsung-cnct/gists{/gist_id}","starred_url":"https://api.github.com/users/samsung-cnct/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samsung-cnct/subscriptions","organizations_url":"https://api.github.com/users/samsung-cnct/orgs","repos_url":"https://api.github.com/users/samsung-cnct/repos","events_url":"https://api.github.com/users/samsung-cnct/events{/privacy}","received_events_url":"https://api.github.com/users/samsung-cnct/received_events","type":"Organization","site_admin":false},"repo":{"id":72865439,"name":"elasticsearch-kubernetes","full_name":"samsung-cnct/elasticsearch-kubernetes","owner":{"login":"samsung-cnct","id":11511065,"avatar_url":"https://avatars.githubusercontent.com/u/11511065?v=3","gravatar_id":"","url":"https://api.github.com/users/samsung-cnct","html_url":"https://github.com/samsung-cnct","followers_url":"https://api.github.com/users/samsung-cnct/followers","following_url":"https://api.github.com/users/samsung-cnct/following{/other_user}","gists_url":"https://api.github.com/users/samsung-cnct/gists{/gist_id}","starred_url":"https://api.github.com/users/samsung-cnct/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samsung-cnct/subscriptions","organizations_url":"https://api.github.com/users/samsung-cnct/orgs","repos_url":"https://api.github.com/users/samsung-cnct/repos","events_url":"https://api.github.com/users/samsung-cnct/events{/privacy}","received_events_url":"https://api.github.com/users/samsung-cnct/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/samsung-cnct/elasticsearch-kubernetes","description":"docker file and yamls for kubernetes deploys","fork":false,"url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes","forks_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/forks","keys_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/teams","hooks_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/hooks","issue_events_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/events","assignees_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/tags","blobs_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/languages","stargazers_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/stargazers","contributors_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/contributors","subscribers_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/subscribers","subscription_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/subscription","commits_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/merges","archive_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/downloads","issues_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/releases{/id}","deployments_url":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/deployments","created_at":"2016-11-04T16:28:11Z","updated_at":"2016-11-04T16:28:11Z","pushed_at":"2016-11-15T23:59:32Z","git_url":"git://github.com/samsung-cnct/elasticsearch-kubernetes.git","ssh_url":"git@github.com:samsung-cnct/elasticsearch-kubernetes.git","clone_url":"https://github.com/samsung-cnct/elasticsearch-kubernetes.git","svn_url":"https://github.com/samsung-cnct/elasticsearch-kubernetes","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/pulls/1"},"html":{"href":"https://github.com/samsung-cnct/elasticsearch-kubernetes/pull/1"},"issue":{"href":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/issues/1"},"comments":{"href":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/samsung-cnct/elasticsearch-kubernetes/statuses/dd706bfabc26fd3be146b2bb8d08ed910b1ecc49"}}}}
{"actor":{"display_login":"coffeepac"}}