{"action":"reopened","number":317,"pull_request":{"url":"https://api.github.com/repos/datawire/ambassador/pulls/317","id":174785645,"html_url":"https://github.com/datawire/ambassador/pull/317","diff_url":"https://github.com/datawire/ambassador/pull/317.diff","patch_url":"https://github.com/datawire/ambassador/pull/317.patch","issue_url":"https://api.github.com/repos/datawire/ambassador/issues/317","number":317,"state":"open","locked":false,"title":"Ambassador Helm chart","user":{"login":"stefanprodan","id":3797675,"avatar_url":"https://avatars3.githubusercontent.com/u/3797675?v=4","gravatar_id":"","url":"https://api.github.com/users/stefanprodan","html_url":"https://github.com/stefanprodan","followers_url":"https://api.github.com/users/stefanprodan/followers","following_url":"https://api.github.com/users/stefanprodan/following{/other_user}","gists_url":"https://api.github.com/users/stefanprodan/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanprodan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanprodan/subscriptions","organizations_url":"https://api.github.com/users/stefanprodan/orgs","repos_url":"https://api.github.com/users/stefanprodan/repos","events_url":"https://api.github.com/users/stefanprodan/events{/privacy}","received_events_url":"https://api.github.com/users/stefanprodan/received_events","type":"User","site_admin":false},"body":"This PR adds a Helm chart to bootstrap Ambassador on Kubernetes.  Ref #65\r\n\r\nI've tested it on GKE 1.9.3 with RBAC enabled, the default install will create the following:\r\n\r\n* Ambassador deployment with one replica\r\n* RBAC with a dedicated service account\r\n* The deployment has Prometheus scraping annotations and statsd-sink runs as a sidecar\r\n* A LoadBalancer service is used for 80 and 443 ports\r\n* A ClusterIP service is used for port 8877 (admin UI)\r\n\r\nIn order to publish the chart on `getambassador.io` you have to run the following script in the root of the repo:\r\n\r\n```bash\r\ncd helm && helm package ambassador/\r\nmv helm/ambassador-0.1.0.tgz docs/\r\nhelm repo index docs --url https://www.getambassador.io\r\n```\r\n\r\nThis will create 2 files inside `/docs`, commit those files and publish the docs content on `getambassador.io`.\r\n\r\nAfter `index.yaml` and `ambassador-0.1.0.tgz` have been published, this is how you can use the chart:\r\n\r\n```bash\r\nhelm repo add datawire https://www.getambassador.io\r\n\r\nhelm upgrade --install --wait my-release \\\r\n --set adminService.type=NodePort \\\r\n datawire/ambassador\r\n```\r\n\r\nThe chart configurable parameters are described in the readme.\r\n\r\n| Parameter                       | Description                                | Default                                                    |\r\n| ------------------------------- | ------------------------------------------ | ---------------------------------------------------------- |\r\n| `image` | Image | `quay.io/datawire/ambassador` \r\n| `imageTag` | Image tag | `0.29.0` \r\n| `imagePullPolicy` | Image pull policy | `IfNotPresent` \r\n| `replicaCount`  | Number of Ambassador replicas  | `1` \r\n| `resources` | CPU/memory resource requests/limits | None \r\n| `rbac.create` | If `true`, create and use RBAC resources | `true`\r\n| `serviceAccount.create` | If `true`, create a new service account | `true`\r\n| `serviceAccount.name` | Service account to be used | `ambassador`\r\n| `service.type` | Service type to be used | `LoadBalancer`\r\n| `adminService.create` | If `true`, create a service for Ambassador's admin UI | `true`\r\n| `adminService.type` | Ambassador's admin service type to be used | `ClusterIP`\r\n| `exporter.image` | Prometheus exporter image | `datawire/prom-statsd-exporter:0.6.0`\r\n| `timing.restart` | The minimum number of seconds between Envoy restarts | `15`\r\n| `timing.drain` | The number of seconds that the Envoy will wait for open connections to drain on a restart | `5`\r\n| `timing.shutdown` | The number of seconds that Ambassador will wait for the old Envoy to clean up and exit on a restart | `10`\r\n\r\nIn order to update the chart, change the `version` field inside `Chart.yaml` and run this script:\r\n\r\n```bash\r\nexport VERSION=0.2.0\r\ncd helm && helm package ambassador/\r\nmv helm/ambassador-${VERSION}.tgz docs/\r\nhelm repo index docs --url https://www.getambassador.io --merge ./docs/index.yaml\r\n```\r\n\r\nThe `merge` command will add the new version to the `index.yaml` file.\r\n\r\nYou can test the chart using my repo:\r\n\r\n```\r\nhelm repo add sp https://stefanprodan.github.io/k8s-podinfo\r\n\r\nhelm upgrade --install --wait envoy sp/ambassador\r\n\r\nkubectl apply -f https://raw.githubusercontent.com/stefanprodan/k8s-podinfo/master/deploy/ambassador-backends/blue-dep.yaml\r\n\r\nkubectl apply -f https://raw.githubusercontent.com/stefanprodan/k8s-podinfo/master/deploy/ambassador-backends/blue-svc.yaml\r\n\r\nexport SERVICE_IP=$(kubectl get svc --namespace default envoy-ambassador -o jsonpath='{.status.loadBalancer.ingress[0].ip}')\r\n\r\ncurl -H \"Host: podinfo.test\" ${SERVICE_IP}\r\n```","created_at":"2018-03-13T20:49:28Z","updated_at":"2018-03-26T21:08:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6eaa6867292cb678d652830b208acb14dc323687","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/datawire/ambassador/pulls/317/commits","review_comments_url":"https://api.github.com/repos/datawire/ambassador/pulls/317/comments","review_comment_url":"https://api.github.com/repos/datawire/ambassador/pulls/comments{/number}","comments_url":"https://api.github.com/repos/datawire/ambassador/issues/317/comments","statuses_url":"https://api.github.com/repos/datawire/ambassador/statuses/097d3b683f31a02e3e42ad91557e320d587f41e8","head":{"label":"stefanprodan:helm","ref":"helm","sha":"097d3b683f31a02e3e42ad91557e320d587f41e8","user":{"login":"stefanprodan","id":3797675,"avatar_url":"https://avatars3.githubusercontent.com/u/3797675?v=4","gravatar_id":"","url":"https://api.github.com/users/stefanprodan","html_url":"https://github.com/stefanprodan","followers_url":"https://api.github.com/users/stefanprodan/followers","following_url":"https://api.github.com/users/stefanprodan/following{/other_user}","gists_url":"https://api.github.com/users/stefanprodan/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanprodan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanprodan/subscriptions","organizations_url":"https://api.github.com/users/stefanprodan/orgs","repos_url":"https://api.github.com/users/stefanprodan/repos","events_url":"https://api.github.com/users/stefanprodan/events{/privacy}","received_events_url":"https://api.github.com/users/stefanprodan/received_events","type":"User","site_admin":false},"repo":{"id":125108685,"name":"ambassador","full_name":"stefanprodan/ambassador","owner":{"login":"stefanprodan","id":3797675,"avatar_url":"https://avatars3.githubusercontent.com/u/3797675?v=4","gravatar_id":"","url":"https://api.github.com/users/stefanprodan","html_url":"https://github.com/stefanprodan","followers_url":"https://api.github.com/users/stefanprodan/followers","following_url":"https://api.github.com/users/stefanprodan/following{/other_user}","gists_url":"https://api.github.com/users/stefanprodan/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanprodan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanprodan/subscriptions","organizations_url":"https://api.github.com/users/stefanprodan/orgs","repos_url":"https://api.github.com/users/stefanprodan/repos","events_url":"https://api.github.com/users/stefanprodan/events{/privacy}","received_events_url":"https://api.github.com/users/stefanprodan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stefanprodan/ambassador","description":"open source Kubernetes-native API gateway for microservices built on the Envoy Proxy","fork":true,"url":"https://api.github.com/repos/stefanprodan/ambassador","forks_url":"https://api.github.com/repos/stefanprodan/ambassador/forks","keys_url":"https://api.github.com/repos/stefanprodan/ambassador/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stefanprodan/ambassador/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stefanprodan/ambassador/teams","hooks_url":"https://api.github.com/repos/stefanprodan/ambassador/hooks","issue_events_url":"https://api.github.com/repos/stefanprodan/ambassador/issues/events{/number}","events_url":"https://api.github.com/repos/stefanprodan/ambassador/events","assignees_url":"https://api.github.com/repos/stefanprodan/ambassador/assignees{/user}","branches_url":"https://api.github.com/repos/stefanprodan/ambassador/branches{/branch}","tags_url":"https://api.github.com/repos/stefanprodan/ambassador/tags","blobs_url":"https://api.github.com/repos/stefanprodan/ambassador/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stefanprodan/ambassador/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stefanprodan/ambassador/git/refs{/sha}","trees_url":"https://api.github.com/repos/stefanprodan/ambassador/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stefanprodan/ambassador/statuses/{sha}","languages_url":"https://api.github.com/repos/stefanprodan/ambassador/languages","stargazers_url":"https://api.github.com/repos/stefanprodan/ambassador/stargazers","contributors_url":"https://api.github.com/repos/stefanprodan/ambassador/contributors","subscribers_url":"https://api.github.com/repos/stefanprodan/ambassador/subscribers","subscription_url":"https://api.github.com/repos/stefanprodan/ambassador/subscription","commits_url":"https://api.github.com/repos/stefanprodan/ambassador/commits{/sha}","git_commits_url":"https://api.github.com/repos/stefanprodan/ambassador/git/commits{/sha}","comments_url":"https://api.github.com/repos/stefanprodan/ambassador/comments{/number}","issue_comment_url":"https://api.github.com/repos/stefanprodan/ambassador/issues/comments{/number}","contents_url":"https://api.github.com/repos/stefanprodan/ambassador/contents/{+path}","compare_url":"https://api.github.com/repos/stefanprodan/ambassador/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stefanprodan/ambassador/merges","archive_url":"https://api.github.com/repos/stefanprodan/ambassador/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stefanprodan/ambassador/downloads","issues_url":"https://api.github.com/repos/stefanprodan/ambassador/issues{/number}","pulls_url":"https://api.github.com/repos/stefanprodan/ambassador/pulls{/number}","milestones_url":"https://api.github.com/repos/stefanprodan/ambassador/milestones{/number}","notifications_url":"https://api.github.com/repos/stefanprodan/ambassador/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stefanprodan/ambassador/labels{/name}","releases_url":"https://api.github.com/repos/stefanprodan/ambassador/releases{/id}","deployments_url":"https://api.github.com/repos/stefanprodan/ambassador/deployments","created_at":"2018-03-13T20:12:13Z","updated_at":"2018-03-13T20:12:15Z","pushed_at":"2018-03-16T07:18:52Z","git_url":"git://github.com/stefanprodan/ambassador.git","ssh_url":"git@github.com:stefanprodan/ambassador.git","clone_url":"https://github.com/stefanprodan/ambassador.git","svn_url":"https://github.com/stefanprodan/ambassador","homepage":"https://www.getambassador.io","size":2632,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"datawire:develop","ref":"develop","sha":"3863f57bf63236195c99f52f75785167ba1344b5","user":{"login":"datawire","id":9270257,"avatar_url":"https://avatars0.githubusercontent.com/u/9270257?v=4","gravatar_id":"","url":"https://api.github.com/users/datawire","html_url":"https://github.com/datawire","followers_url":"https://api.github.com/users/datawire/followers","following_url":"https://api.github.com/users/datawire/following{/other_user}","gists_url":"https://api.github.com/users/datawire/gists{/gist_id}","starred_url":"https://api.github.com/users/datawire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datawire/subscriptions","organizations_url":"https://api.github.com/users/datawire/orgs","repos_url":"https://api.github.com/users/datawire/repos","events_url":"https://api.github.com/users/datawire/events{/privacy}","received_events_url":"https://api.github.com/users/datawire/received_events","type":"Organization","site_admin":false},"repo":{"id":86740149,"name":"ambassador","full_name":"datawire/ambassador","owner":{"login":"datawire","id":9270257,"avatar_url":"https://avatars0.githubusercontent.com/u/9270257?v=4","gravatar_id":"","url":"https://api.github.com/users/datawire","html_url":"https://github.com/datawire","followers_url":"https://api.github.com/users/datawire/followers","following_url":"https://api.github.com/users/datawire/following{/other_user}","gists_url":"https://api.github.com/users/datawire/gists{/gist_id}","starred_url":"https://api.github.com/users/datawire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datawire/subscriptions","organizations_url":"https://api.github.com/users/datawire/orgs","repos_url":"https://api.github.com/users/datawire/repos","events_url":"https://api.github.com/users/datawire/events{/privacy}","received_events_url":"https://api.github.com/users/datawire/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/datawire/ambassador","description":"open source Kubernetes-native API gateway for microservices built on the Envoy Proxy","fork":false,"url":"https://api.github.com/repos/datawire/ambassador","forks_url":"https://api.github.com/repos/datawire/ambassador/forks","keys_url":"https://api.github.com/repos/datawire/ambassador/keys{/key_id}","collaborators_url":"https://api.github.com/repos/datawire/ambassador/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/datawire/ambassador/teams","hooks_url":"https://api.github.com/repos/datawire/ambassador/hooks","issue_events_url":"https://api.github.com/repos/datawire/ambassador/issues/events{/number}","events_url":"https://api.github.com/repos/datawire/ambassador/events","assignees_url":"https://api.github.com/repos/datawire/ambassador/assignees{/user}","branches_url":"https://api.github.com/repos/datawire/ambassador/branches{/branch}","tags_url":"https://api.github.com/repos/datawire/ambassador/tags","blobs_url":"https://api.github.com/repos/datawire/ambassador/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/datawire/ambassador/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/datawire/ambassador/git/refs{/sha}","trees_url":"https://api.github.com/repos/datawire/ambassador/git/trees{/sha}","statuses_url":"https://api.github.com/repos/datawire/ambassador/statuses/{sha}","languages_url":"https://api.github.com/repos/datawire/ambassador/languages","stargazers_url":"https://api.github.com/repos/datawire/ambassador/stargazers","contributors_url":"https://api.github.com/repos/datawire/ambassador/contributors","subscribers_url":"https://api.github.com/repos/datawire/ambassador/subscribers","subscription_url":"https://api.github.com/repos/datawire/ambassador/subscription","commits_url":"https://api.github.com/repos/datawire/ambassador/commits{/sha}","git_commits_url":"https://api.github.com/repos/datawire/ambassador/git/commits{/sha}","comments_url":"https://api.github.com/repos/datawire/ambassador/comments{/number}","issue_comment_url":"https://api.github.com/repos/datawire/ambassador/issues/comments{/number}","contents_url":"https://api.github.com/repos/datawire/ambassador/contents/{+path}","compare_url":"https://api.github.com/repos/datawire/ambassador/compare/{base}...{head}","merges_url":"https://api.github.com/repos/datawire/ambassador/merges","archive_url":"https://api.github.com/repos/datawire/ambassador/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/datawire/ambassador/downloads","issues_url":"https://api.github.com/repos/datawire/ambassador/issues{/number}","pulls_url":"https://api.github.com/repos/datawire/ambassador/pulls{/number}","milestones_url":"https://api.github.com/repos/datawire/ambassador/milestones{/number}","notifications_url":"https://api.github.com/repos/datawire/ambassador/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/datawire/ambassador/labels{/name}","releases_url":"https://api.github.com/repos/datawire/ambassador/releases{/id}","deployments_url":"https://api.github.com/repos/datawire/ambassador/deployments","created_at":"2017-03-30T19:22:52Z","updated_at":"2018-03-26T21:02:59Z","pushed_at":"2018-03-26T21:04:35Z","git_url":"git://github.com/datawire/ambassador.git","ssh_url":"git@github.com:datawire/ambassador.git","clone_url":"https://github.com/datawire/ambassador.git","svn_url":"https://github.com/datawire/ambassador","homepage":"https://www.getambassador.io","size":2660,"stargazers_count":452,"watchers_count":452,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"archived":false,"open_issues_count":56,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":48,"open_issues":56,"watchers":452,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/datawire/ambassador/pulls/317"},"html":{"href":"https://github.com/datawire/ambassador/pull/317"},"issue":{"href":"https://api.github.com/repos/datawire/ambassador/issues/317"},"comments":{"href":"https://api.github.com/repos/datawire/ambassador/issues/317/comments"},"review_comments":{"href":"https://api.github.com/repos/datawire/ambassador/pulls/317/comments"},"review_comment":{"href":"https://api.github.com/repos/datawire/ambassador/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/datawire/ambassador/pulls/317/commits"},"statuses":{"href":"https://api.github.com/repos/datawire/ambassador/statuses/097d3b683f31a02e3e42ad91557e320d587f41e8"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":5,"review_comments":0,"maintainer_can_modify":true,"commits":3,"additions":397,"deletions":0,"changed_files":11}}
{"actor":{"display_login":"kflynn"}}