From f123b2d86c0b5e207cdeb2da943420708110d8d6 Mon Sep 17 00:00:00 2001 From: ada-u Date: Wed, 25 Nov 2020 21:41:41 +0900 Subject: [PATCH] Add an instruction to install expoerter with helm --- README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3274d5a..aacfdc4 100644 --- a/README.md +++ b/README.md @@ -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