diff --git a/stable/kapacitor/Chart.yaml b/stable/kapacitor/Chart.yaml index b487841c03..ece83bd657 100755 --- a/stable/kapacitor/Chart.yaml +++ b/stable/kapacitor/Chart.yaml @@ -1,5 +1,5 @@ name: kapacitor -version: 0.2.2 +version: 0.3.0 description: InfluxDB's native data processing engine. It can process both stream and batch data from InfluxDB. keywords: - kapacitor diff --git a/stable/kapacitor/README.md b/stable/kapacitor/README.md index bac50c283b..615d3adfa6 100644 --- a/stable/kapacitor/README.md +++ b/stable/kapacitor/README.md @@ -43,6 +43,25 @@ The command removes all the Kubernetes components associated with the chart and ## Configuration +The following table lists the configurable parameters of the Kapacitor chart and their default values. + +| Parameter | Description | Default | +| ----------------------- | ---------------------------------- | ---------------------------------------------------------- | +| `image.repository` | Kapacitor image | `kapacitor` | +| `image.tag` | Kapacitor image version | `1.2` | +| `image.pullPolicy` | Kapacitor image pull policy | `IfNotPresent` | +| `service.type` | Kapacitor web service type | `ClusterIP` | +| `persistence.enabled` | Enable Kapacitor persistence using Persistent Volume Claims | `false` | +| `persistence.storageClass` | Kapacitor Persistent Volume Storage Class | `default` | +| `persistence.accessMode` | Kapacitor Persistent Volume Access Mode | `ReadWriteOnce` | +| `persistence.size` | Kapacitor Persistent Volume Storage Size | `8Gi` | +| `resources.request.memory` | Kapacitor memory request | `256Mi` | +| `resources.request.cpu` | Kapacitor cpu request | `0.1` | +| `resources.limits.memory` | Kapacitor memory limit | `2Gi` | +| `resources.limits.cpu` | Kapacitor cpu limit | `2` | +| `envVars` | Environment variables to set initial Kapacitor configuration (https://hub.docker.com/_/kapacitor/) | `{}` | +| `influxURL` | InfluxDB url used to interact with Kapacitor (also can be set with ```envVars.KAPACITOR_INFLUXDB_0_URLS_0```) | `http://influxdb-influxdb.tick:8086` | + The configurable parameters of the Kapacitor chart and the default values are listed in `values.yaml`. The [full image documentation](https://hub.docker.com/_/kapacitor/) contains more information about running Kapacitor in docker. diff --git a/stable/kapacitor/templates/deployment.yaml b/stable/kapacitor/templates/deployment.yaml index 2e2e7e846c..a69d0daa8c 100644 --- a/stable/kapacitor/templates/deployment.yaml +++ b/stable/kapacitor/templates/deployment.yaml @@ -25,6 +25,10 @@ spec: value: {{ template "fullname" . }}.{{ .Release.Namespace }} - name: KAPACITOR_INFLUXDB_0_URLS_0 value: {{ .Values.influxURL }} + {{- range $key, $val := .Values.envVars }} + - name: {{ $key }} + value: {{ $val | quote }} + {{- end}} ports: - containerPort: 9092 volumeMounts: diff --git a/stable/kapacitor/values.yaml b/stable/kapacitor/values.yaml index 3a6bb3df6f..d76be063e4 100644 --- a/stable/kapacitor/values.yaml +++ b/stable/kapacitor/values.yaml @@ -12,7 +12,7 @@ image: service: type: ClusterIP -## Persist data to a persitent volume +## Persist data to a persistent volume ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ ## persistence: @@ -34,6 +34,19 @@ resources: limits: memory: 2Gi cpu: 2 + +## Set the environment variables for kapacitor (or anything else you want to use) +## ref: https://hub.docker.com/_/kapacitor/ +## +# Examples below +# +# envVars: +# KAPACITOR_SLACK_ENABLED: true +# KAPACITOR_SLACK_URL: "http://slack.com/xxxxx/xxxxx/xxxx/xxxxxxx" +# +# or, at your terminal, with +# +# helm install --name kapacitor-rls --set influxURL=http://influxurl.com,envVars.KAPACITOR_SLACK_ENABLED=true,envVars.KAPACITOR_SLACK_URL="http://slack.com/xxxxx/xxxxx/xxxx/xxxxxxx" stable/kapacitor ## Set the URL of InfluxDB instance to create subscription on ## ref: https://docs.influxdata.com/kapacitor/v1.1/introduction/getting_started/