Commit e213b828 authored by Carlos Tadeu Panato Junior's avatar Carlos Tadeu Panato Junior Committed by k8s-ci-robot

update kapacitor to the latest release and some fixed to match best practices (#7626)

Signed-off-by: 's avatarcpanato <ctadeu@gmail.com>
parent 1fa0e7d8
name: kapacitor name: kapacitor
version: 0.5.1 version: 1.0.0
appVersion: 1.4 appVersion: 1.6.2
description: InfluxDB's native data processing engine. It can process both stream description: InfluxDB's native data processing engine. It can process both stream
and batch data from InfluxDB. and batch data from InfluxDB.
keywords: keywords:
...@@ -12,6 +12,6 @@ home: https://www.influxdata.com/time-series-platform/kapacitor/ ...@@ -12,6 +12,6 @@ home: https://www.influxdata.com/time-series-platform/kapacitor/
sources: sources:
- https://github.com/influxdata/kapacitor - https://github.com/influxdata/kapacitor
maintainers: maintainers:
- name: Jack Zampolin - name: jackzampolin
email: jack@influxdb.com email: jack@influxdb.com
engine: gotpl engine: gotpl
...@@ -48,13 +48,14 @@ The following table lists the configurable parameters of the Kapacitor chart and ...@@ -48,13 +48,14 @@ The following table lists the configurable parameters of the Kapacitor chart and
| Parameter | Description | Default | | Parameter | Description | Default |
| ----------------------- | ---------------------------------- | ---------------------------------------------------------- | | ----------------------- | ---------------------------------- | ---------------------------------------------------------- |
| `image.repository` | Kapacitor image | `kapacitor` | | `image.repository` | Kapacitor image | `kapacitor` |
| `image.tag` | Kapacitor image version | `1.2` | | `image.tag` | Kapacitor image version | `1.6.2-alpine` |
| `image.pullPolicy` | Kapacitor image pull policy | `IfNotPresent` | | `image.pullPolicy` | Kapacitor image pull policy | `IfNotPresent` |
| `service.type` | Kapacitor web service type | `ClusterIP` | | `service.type` | Kapacitor web service type | `ClusterIP` |
| `persistence.enabled` | Enable Kapacitor persistence using Persistent Volume Claims | `false` | | `persistence.enabled` | Enable Kapacitor persistence using Persistent Volume Claims | `false` |
| `persistence.storageClass` | Kapacitor Persistent Volume Storage Class | `default` | | `persistence.storageClass` | Kapacitor Persistent Volume Storage Class | `default` |
| `persistence.accessMode` | Kapacitor Persistent Volume Access Mode | `ReadWriteOnce` | | `persistence.accessMode` | Kapacitor Persistent Volume Access Mode | `ReadWriteOnce` |
| `persistence.size` | Kapacitor Persistent Volume Storage Size | `8Gi` | | `persistence.size` | Kapacitor Persistent Volume Storage Size | `8Gi` |
| `persistence.existingClaim` | Kapacitor existing PVC name | `nil` |
| `resources.request.memory` | Kapacitor memory request | `256Mi` | | `resources.request.memory` | Kapacitor memory request | `256Mi` |
| `resources.request.cpu` | Kapacitor cpu request | `0.1` | | `resources.request.cpu` | Kapacitor cpu request | `0.1` |
| `resources.limits.memory` | Kapacitor memory limit | `2Gi` | | `resources.limits.memory` | Kapacitor memory limit | `2Gi` |
......
...@@ -40,7 +40,7 @@ spec: ...@@ -40,7 +40,7 @@ spec:
- name: data - name: data
{{- if .Values.persistence.enabled }} {{- if .Values.persistence.enabled }}
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ template "kapacitor.fullname" . }} claimName: {{ .Values.persistence.existingClaim | default (include "kapacitor.fullname" .) }}
{{- else }} {{- else }}
emptyDir: {} emptyDir: {}
{{- end }} {{- end }}
......
{{- if .Values.persistence.enabled }} {{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
{{- if .Values.influxURL }}
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
apiVersion: v1 apiVersion: v1
metadata: metadata:
...@@ -22,3 +23,4 @@ spec: ...@@ -22,3 +23,4 @@ spec:
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }}
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
## ##
image: image:
repository: "kapacitor" repository: "kapacitor"
tag: "1.4-alpine" tag: "1.6.2-alpine"
pullPolicy: "IfNotPresent" pullPolicy: "IfNotPresent"
## Specify a service type, defaults to NodePort ## Specify a service type, defaults to NodePort
...@@ -16,7 +16,7 @@ service: ...@@ -16,7 +16,7 @@ service:
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
## ##
persistence: persistence:
enabled: false enabled: true
## kapacitor data Persistent Volume Storage Class ## kapacitor data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass> ## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning ## If set to "-", storageClassName: "", which disables dynamic provisioning
...@@ -27,6 +27,7 @@ persistence: ...@@ -27,6 +27,7 @@ persistence:
# storageClass: "-" # storageClass: "-"
accessMode: ReadWriteOnce accessMode: ReadWriteOnce
size: 8Gi size: 8Gi
# existingClaim: ""
## Configure resource requests and limits ## Configure resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/ ## ref: http://kubernetes.io/docs/user-guide/compute-resources/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment