add option to include tolerations to daemonset (#1364)

This commit is contained in:
ag237
2017-07-06 17:12:20 +02:00
committed by Reinhard Nägele
parent 689cc8b6d8
commit 7efd8f2bdd
3 changed files with 15 additions and 0 deletions
+9
View File
@@ -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
+2
View File
@@ -61,4 +61,6 @@ spec:
- name: sumo-sources
configMap:
name: "{{ template "fullname" . }}-config-{{.Release.Time.Seconds }}"
tolerations:
{{ toYaml .Values.daemonset.tolerations | indent 8 }}
{{ end }}
+4
View File
@@ -29,3 +29,7 @@ resources:
limits:
cpu: 256m
memory: 256Mi
daemonset:
tolerations: []