From 3785777b3e53e370b6ee5f5dd84bf756d796df73 Mon Sep 17 00:00:00 2001 From: Shuo Wu Date: Tue, 17 Sep 2019 16:08:46 -0700 Subject: [PATCH] chart: Update chart for customized taint toleration setting Signed-off-by: Shuo Wu --- chart/questions.yml | 6 ++++++ chart/templates/default-setting.yaml | 1 + chart/values.yaml | 1 + 3 files changed, 8 insertions(+) diff --git a/chart/questions.yml b/chart/questions.yml index 26dc8d8..7cfb4fa 100644 --- a/chart/questions.yml +++ b/chart/questions.yml @@ -149,6 +149,12 @@ questions: type: int min: 0 default: 300 +- variable: defaultSettings.taintToleration + label: Kubernetes Taint Toleration + description: "By setting tolerations for Longhorn then adding taints for the nodes, the nodes with large storage can be dedicated to Longhorn only (to store replica data) and reject other general workloads. Multiple tolerations can be set here, and these tolerations are separated by comma. For example, \"key1=value1:NoSchedule, key2:NoExecute\". Notice that \"kubernetes.io\" is used as the key of all Kubernetes default tolerations, please do not contain this substring in your toleration setting." + group: "Longhorn Default Settings" + type: string + default: "" - variable: ingress.enabled default: "false" description: "Expose app using Layer 7 Load Balancer - ingress" diff --git a/chart/templates/default-setting.yaml b/chart/templates/default-setting.yaml index 5ea4aaa..1fc48c4 100644 --- a/chart/templates/default-setting.yaml +++ b/chart/templates/default-setting.yaml @@ -17,3 +17,4 @@ data: guaranteed-engine-cpu: {{ .Values.defaultSettings.guaranteedEngineCPU }} default-longhorn-static-storage-class: {{ .Values.defaultSettings.defaultLonghornStaticStorageClass }} backupstore-poll-interval: {{ .Values.defaultSettings.backupstorePollInterval }} + taint-toleration: {{ .Values.defaultSettings.taintToleration }} diff --git a/chart/values.yaml b/chart/values.yaml index c4fc553..85c095b 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -50,6 +50,7 @@ defaultSettings: guaranteedEngineCPU: defaultLonghornStaticStorageClass: backupstorePollInterval: + taintToleration: resources: {} # We usually recommend not to specify default resources and to leave this as a conscious