diff --git a/incubator/zookeeper/Chart.yaml b/incubator/zookeeper/Chart.yaml index 7a276c3539..6cd9e25113 100755 --- a/incubator/zookeeper/Chart.yaml +++ b/incubator/zookeeper/Chart.yaml @@ -1,6 +1,6 @@ name: zookeeper home: https://zookeeper.apache.org/ -version: 0.5.2 +version: 0.6.0 description: Centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services. icon: https://zookeeper.apache.org/images/zookeeper_small.gif diff --git a/incubator/zookeeper/README.md b/incubator/zookeeper/README.md index 3cdc0b0ffe..9d411a2dfb 100644 --- a/incubator/zookeeper/README.md +++ b/incubator/zookeeper/README.md @@ -113,6 +113,7 @@ Spreading allows you specify an anti-affinity between ZooKeeper servers in the e | --------- | ----------- | ------- | | `schedulerName` | Name of scheduler to use (other than the default). | `nil` | | `antiAffinity` | If present it must take the values 'hard' or 'soft'. 'hard' will cause the Kubernetes scheduler to not schedule the Pods on the same physical node under any circumstances 'soft' will cause the Kubernetes scheduler to make a best effort to not co-locate the Pods, but, if the only available resources are on the same node, the scheduler will co-locate them. | `hard` | +| `tolerations` | An optional list of tolerations for the zookeeper pods. https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ | `[]` | ### Logging In order to allow for the default installation to work well with the log rolling and retention policy of Kubernetes, all logs are written to stdout. This should also be compatible with logging integrations such as Google Cloud Logging and ELK. diff --git a/incubator/zookeeper/templates/statefulset.yaml b/incubator/zookeeper/templates/statefulset.yaml index 36d378f014..71bdc90cda 100644 --- a/incubator/zookeeper/templates/statefulset.yaml +++ b/incubator/zookeeper/templates/statefulset.yaml @@ -18,6 +18,10 @@ spec: app: {{ include "zookeeper.name" . | quote }} release: {{ .Release.Name | quote }} spec: +{{- if .Values.tolerations }} + tolerations: +{{ toYaml .Values.tolerations | indent 8 }} +{{- end }} {{- if .Values.schedulerName }} schedulerName: "{{ .Values.schedulerName }}" {{- end }} diff --git a/incubator/zookeeper/values.yaml b/incubator/zookeeper/values.yaml index 023a737643..acf7c74708 100644 --- a/incubator/zookeeper/values.yaml +++ b/incubator/zookeeper/values.yaml @@ -55,6 +55,16 @@ affinity: {} ## nodeSelector: {} +# Tolerations for nodes that have taints on them. +# Useful if you want to dedicate nodes to just run kafka +# https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ +tolerations: [] +# tolerations: +# - key: "key" +# operator: "Equal" +# value: "value" +# effect: "NoSchedule" +# ## Persistence configuration. Specify if and how to persist data to a persistent volume. ## persistence: