From 782fe16af0b6dc1de35ce583097995aed65cdc50 Mon Sep 17 00:00:00 2001 From: Mikhail Naletov <36846182+okgolove@users.noreply.github.com> Date: Tue, 7 May 2019 00:13:47 +0300 Subject: [PATCH] [stable/aerospike] Added tolerations to the aerospike chart (#13551) * Added tolerations to the aerospike chart Signed-off-by: Mikhail Naletov * Fixed end-block alignment Signed-off-by: Mikhail Naletov --- stable/aerospike/Chart.yaml | 2 +- stable/aerospike/README.md | 1 + stable/aerospike/templates/statefulset.yaml | 4 ++++ stable/aerospike/values.yaml | 2 ++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/stable/aerospike/Chart.yaml b/stable/aerospike/Chart.yaml index cbab8a6ee3..a2ec5444dc 100644 --- a/stable/aerospike/Chart.yaml +++ b/stable/aerospike/Chart.yaml @@ -5,7 +5,7 @@ keywords: - aerospike - big-data home: http://aerospike.com -version: 0.2.3 +version: 0.2.4 icon: https://s3-us-west-1.amazonaws.com/aerospike-fd/wp-content/uploads/2016/06/Aerospike_square_logo.png sources: - https://github.com/aerospike/aerospike-server diff --git a/stable/aerospike/README.md b/stable/aerospike/README.md index f2b4267625..23c1885c36 100644 --- a/stable/aerospike/README.md +++ b/stable/aerospike/README.md @@ -45,6 +45,7 @@ The chart can be customized using the following configurable parameters: | `replicaCount` | Aerospike Brokers | `1` | | `command` | Custom command (Docker Entrypoint) | `[]` | | `args` | Custom args (Docker Cmd) | `[]` | +| `tolerations` | List of node taints to tolerate | `[]` | | `persistentVolume` | Config of persistent volumes for storage-engine | `{}` | | `confFile` | Config filename. This file should be included in the chart path | `aerospike.conf` | | `resources` | Resource requests and limits | `{}` | diff --git a/stable/aerospike/templates/statefulset.yaml b/stable/aerospike/templates/statefulset.yaml index a7b926b052..c893d59d38 100644 --- a/stable/aerospike/templates/statefulset.yaml +++ b/stable/aerospike/templates/statefulset.yaml @@ -55,6 +55,10 @@ spec: {{- if .Values.affinity }} affinity: {{ toYaml .Values.affinity | indent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: +{{ toYaml . | indent 8 }} {{- end }} volumes: - name: config-volume diff --git a/stable/aerospike/values.yaml b/stable/aerospike/values.yaml index ce5778c31e..da56469bf7 100644 --- a/stable/aerospike/values.yaml +++ b/stable/aerospike/values.yaml @@ -40,6 +40,8 @@ service: meshService: annotations: {} +tolerations: [] + resources: {} # We usually recommend not to specify default resources and to leave this as a conscious # choice for the user. This also increases chances charts run on environments with little