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

add option to include tolerations to daemonset #1364

Merged
merged 1 commit into from
Jul 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions stable/sumokube/README.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ resources:
limits:
cpu: 256m
memory: 256Mi

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment these lines in after removing the ifstatement.

daemonset:
  tolerations: []

daemonset:
tolerations: []