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

Conversation

ag237
Copy link
Contributor

@ag237 ag237 commented Jun 23, 2017

Occasionally pods need to run on the master nodes, and with Kubernetes 1.6.x there are taints on these nodes that prevent sumokube from running there and grabbing logs. This adds the option to add those tolerations to the daemonset.

I'm not sure on protocol for updating version number, so I left it alone.

@k8s-ci-robot
Copy link
Contributor

Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please follow instructions at https://github.com/kubernetes/kubernetes/wiki/CLA-FAQ to sign the CLA.

It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.


Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jun 23, 2017
@k8s-ci-robot
Copy link
Contributor

Hi @ag237. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@ag237 ag237 closed this Jun 23, 2017
@ag237 ag237 reopened this Jun 23, 2017
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Jun 23, 2017
@@ -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 |
| `daemonsets.tolerations | List of node taints to tolerate (requires Kubernetes >= 1.6) | `Nil` You must provide your own tolerations |
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this should be daemonset rather than daemonsets

Copy link
Member

@unguiculus unguiculus left a comment

Choose a reason for hiding this comment

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

Thanks. Just a small correction.

@@ -61,4 +61,8 @@ spec:
- name: sumo-sources
configMap:
name: "{{ template "fullname" . }}-config-{{.Release.Time.Seconds }}"
{{- if .Values.daemonset.tolerations }}
Copy link
Member

Choose a reason for hiding this comment

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

Remove if statement.

@@ -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: []

@@ -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 |
| `daemonsets.tolerations | List of node taints to tolerate (requires Kubernetes >= 1.6) | `Nil` You must provide your own tolerations |
Copy link
Member

Choose a reason for hiding this comment

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

[] instead of 'Nil You must provide your own tolerations'

@unguiculus unguiculus self-assigned this Jun 24, 2017
@unguiculus
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jun 24, 2017
@ag237 ag237 force-pushed the master branch 2 times, most recently from d666bae to 1e6416f Compare June 26, 2017 13:39
@ag237
Copy link
Contributor Author

ag237 commented Jun 26, 2017

Made requested changes.

@unguiculus
Copy link
Member

/cc @seanknox @jdumars

@@ -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) | [] |
Copy link
Contributor

Choose a reason for hiding this comment

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

missing the closing `

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, fixed.

@unguiculus unguiculus added code reviewed size/small lgtm Indicates that a PR is ready to be merged. labels Jul 6, 2017
@unguiculus unguiculus merged commit 7efd8f2 into helm:master Jul 6, 2017
lachie83 added a commit to lachie83/charts that referenced this pull request Jul 10, 2017
* upstream/master: (67 commits)
  Fix json whitespace (helm#1458)
  Use consistent whitespace in template placeholders (helm#1437)
  [stable/selenium] Make hub readiness probe timeout configurable (helm#1391)
  [stable/kube2iam]: add rbac support (helm#1286)
  [stable/traefik] Allow enabling traefik access logs (helm#1302)
  Add Stash chart (helm#1420)
  Add Gearman G2 chart (helm#1421)
  add option to include tolerations to daemonset (helm#1364)
  Moved Artifactory to stable and updated version to 5.3.2 (helm#1314)
  Concourse postgres conditional dependency (helm#1390)
  Typo in helm install command for dask-distributed (helm#1413)
  [stable/fluent-bit] Fluent Bit v0.11.12 (helm#1417)
  fixed cassandra chart's persistence bug (helm#1245)
  Prometheus: modify config to support k8s 1.6 by default (helm#1080)
  Add rocket.chat (helm#752)
  Fix influxdb deployment (helm#1424)
  feat(stable/etcd-operator): add support for supplying additional command args (helm#1418)
  add configurable service annotations helm#1234 (helm#1244)
  [stable/prometheus] extra environment variable for alert manager (helm#1237)
  [stable/heapster] Default service name to Heapster (helm#1266)
  ...
yanns pushed a commit to yanns/charts that referenced this pull request Jul 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. code reviewed lgtm Indicates that a PR is ready to be merged. size/small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants