Unverified Commit 84bfa4ce authored by alespour's avatar alespour Committed by GitHub

[kapacitor] add affinity and tolerations (#445)

* fix confusing description * add affinity and tolerations support * bump version
parent 8d49cfbf
apiVersion: v1
name: kapacitor
version: 1.4.4
version: 1.4.5
appVersion: 1.6.3
description: InfluxDB's native data processing engine. It can process both stream
and batch data from InfluxDB.
......
......@@ -61,7 +61,7 @@ The following table lists configurable parameters, their descriptions, and their
| `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` |
| `influxURL` | InfluxDB url used to interact with Kapacitor | `http://influxdb-influxdb.tick:8086` |
| `existingSecret` | Name of an existing Secrect used to set the environment variables for the InfluxDB user and password. The expected keys in the secret are `influxdb-user` and `influxdb-password`. |
| `rbac.create` | Create and use RBAC resources | `true` |
| `rbac.namespaced` | Creates Role and Rolebinding instead of the default ClusterRole and ClusteRoleBindings for the Kapacitor instance | `false` |
......
......@@ -92,6 +92,14 @@ spec:
- name: sc-sideload-volume
mountPath: "/var/lib/kapacitor/sideload"
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
volumes:
- name: data
{{- if .Values.persistence.enabled }}
......
......@@ -71,6 +71,20 @@ resources:
##
# existingSecret: influxdb-auth
## Affinity for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
##
affinity: {}
## Tolerations for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
##
tolerations: []
# - key: "key"
# operator: "Equal|Exists"
# value: "value"
# effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)"
## Role based access control
rbac:
create: true
......
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