Skip to content

Commit

Permalink
Merge pull request #9 from chatwork/how-to-install-with-helm
Browse files Browse the repository at this point in the history
Add an instruction to install exporter with helm
  • Loading branch information
ada-u authored Nov 25, 2020
2 parents 5c32364 + f123b2d commit fe8afac
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,26 @@ You can check the metrics by accessing Prometheus ([http://127.0.0.1:9200]()).

##### Prerequisites

https://github.com/aslafy-z/helm-git
- Create a `configmap` to store api key
- Install [helm-git](https://github.com/aslafy-z/helm-git) plugin

```
$ cat configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: sendgrid-config
data:
SENDGRID_API_KEY: 'secret'
$ kubectl apply -f configmap.yaml
configmap/sendgrid-config created
```

##### Installing

```
$ helm repo add sendgrid-stats-exporter git+https://github.com/chatwork/sendgrid-stats-exporter@charts?ref=v0.0.1
$ helm repo add sendgrid-stats-exporter 'git+https://github.com/chatwork/sendgrid-stats-exporter@charts?ref=0.0.4'
$ helm install sendgrid-stats-exporter/sendgrid-stats-exporter --set 'envFrom[0].configMapRef.name=sendgrid-config' --name-template sendgrid-stats-exporter
```

## Building
Expand Down

0 comments on commit fe8afac

Please sign in to comment.