Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
add option to include tolerations to daemonset (#1364)
Browse files Browse the repository at this point in the history
  • Loading branch information
ag237 authored and unguiculus committed Jul 6, 2017
1 parent 689cc8b commit 7efd8f2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions stable/sumokube/README.md
Expand Up @@ -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,
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions stable/sumokube/templates/daemonset.yaml
Expand Up @@ -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 changes: 4 additions & 0 deletions stable/sumokube/values.yaml
Expand Up @@ -29,3 +29,7 @@ resources:
limits:
cpu: 256m
memory: 256Mi

daemonset:
tolerations: []

0 comments on commit 7efd8f2

Please sign in to comment.