mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
add option to include tolerations to daemonset (#1364)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -61,4 +61,6 @@ spec:
|
||||
- name: sumo-sources
|
||||
configMap:
|
||||
name: "{{ template "fullname" . }}-config-{{.Release.Time.Seconds }}"
|
||||
tolerations:
|
||||
{{ toYaml .Values.daemonset.tolerations | indent 8 }}
|
||||
{{ end }}
|
||||
|
||||
@@ -29,3 +29,7 @@ resources:
|
||||
limits:
|
||||
cpu: 256m
|
||||
memory: 256Mi
|
||||
|
||||
daemonset:
|
||||
tolerations: []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user