From f184712a599ae57ed9cceeb7caaa85da28ca0c7e Mon Sep 17 00:00:00 2001 From: Adam Gardner Date: Fri, 23 Jun 2017 10:31:02 -0400 Subject: [PATCH] add option to include tolerations to daemonset --- stable/sumokube/README.md | 9 +++++++++ stable/sumokube/templates/daemonset.yaml | 2 ++ stable/sumokube/values.yaml | 4 ++++ 3 files changed, 15 insertions(+) diff --git a/stable/sumokube/README.md b/stable/sumokube/README.md index afff0889f0cc..aec4373d9b53 100644 --- a/stable/sumokube/README.md +++ b/stable/sumokube/README.md @@ -54,6 +54,7 @@ The following tables lists the configurable parameters of the Sumokube chart and | `resources.limits.cpu` | CPU resource limits | 256m | | `resources.requests.memory` | Memory resource requests | 128Mi | | `resources.limits.memory` | Memory resource limits | 256Mi | +| `daemonset.tolerations` | List of node taints to tolerate (requires Kubernetes >= 1.6) | [] | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, @@ -64,6 +65,14 @@ $ helm install --name my-release \ stable/sumokube ``` +Example of adding daemonset tolerations to run on master nodes. Requires Helm >=2.5 + +```bash +$ helm install --name my-release \ + --set sumologic.accessId=YOUR-ID-HERE,sumologic.accessKey=YOUR-KEY-HERE,sumologic.categoryName=my-source-category-name,daemonset.tolerations[0].effect=NoSchedule,daemonset.tolerations[0].key=node-role.kubernetes.io/master \ + stable/sumokube +``` + Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example, ```bash diff --git a/stable/sumokube/templates/daemonset.yaml b/stable/sumokube/templates/daemonset.yaml index 8b64fc4a9dea..c62b1bd7cf48 100644 --- a/stable/sumokube/templates/daemonset.yaml +++ b/stable/sumokube/templates/daemonset.yaml @@ -61,4 +61,6 @@ spec: - name: sumo-sources configMap: name: "{{ template "fullname" . }}-config-{{.Release.Time.Seconds }}" + tolerations: +{{ toYaml .Values.daemonset.tolerations | indent 8 }} {{ end }} diff --git a/stable/sumokube/values.yaml b/stable/sumokube/values.yaml index d48c3540d058..132b650e81f0 100644 --- a/stable/sumokube/values.yaml +++ b/stable/sumokube/values.yaml @@ -29,3 +29,7 @@ resources: limits: cpu: 256m memory: 256Mi + +daemonset: + tolerations: [] +