-
Notifications
You must be signed in to change notification settings - Fork 16.8k
[stable/traefik] Adding support for Dynamic tolerations and nodeSelector #1382
[stable/traefik] Adding support for Dynamic tolerations and nodeSelector #1382
Conversation
Hi @djsly. 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 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. |
/cc @krancour |
@djsly: GitHub didn't allow me to request PR reviews from the following users: krancour. Note that only kubernetes members can review this PR, and authors cannot review their own PRs. In response to this:
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. |
stable/traefik/README.md
Outdated
@@ -95,6 +95,8 @@ The following tables lists the configurable parameters of the Traefik chart and | |||
| `memoryRequest` | Initial share of memory requested per Traefik pod | `20Mi` | | |||
| `cpuLimit` | CPU limit per Traefik pod | `200m` | | |||
| `memoryLimit` | Memory limit per Traefik pod | `30Mi` | | |||
| `nodeSelector` | node labels for pod assignment | {} | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency, capitalize the first word in the description. Also use backticks around the empty map.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
stable/traefik/README.md
Outdated
@@ -95,6 +95,8 @@ The following tables lists the configurable parameters of the Traefik chart and | |||
| `memoryRequest` | Initial share of memory requested per Traefik pod | `20Mi` | | |||
| `cpuLimit` | CPU limit per Traefik pod | `200m` | | |||
| `memoryLimit` | Memory limit per Traefik pod | `30Mi` | | |||
| `nodeSelector` | node labels for pod assignment | {} | | |||
| `tolerations` | List of node taints to tolerate (requires Kubernetes >= 1.6) | [] | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency, use backticks around the empty array.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@@ -21,6 +21,10 @@ spec: | |||
heritage: "{{ .Release.Service }}" | |||
spec: | |||
terminationGracePeriodSeconds: 60 | |||
{{- if .Values.nodeSelector }} | |||
nodeSelector: | |||
{{ toYaml .Values.nodeSelector | indent 8 }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very clean. I like this line. :)
I haven't tried this, but this looks very useful and cleanly implemented. LGTM. @lachie83 or @viglesiasce can one of you please mark this as ok to test? Note, as always, version number should also be incremented accordingly before merge. |
ab4f308
to
d350fb3
Compare
I'm not sure what is expected for the version number increment. Let me know if this is ok. |
45eec91
to
92b90f9
Compare
I'm not sure yet either. afaik, charts are continuously (or near continuously) deployed, so 1 PR implicitly == 1 release. This means we need to be careful about incrementing the version number properly, which requires coordination with other open PRs for the same chart... I am LGTM on this. I'll ask @viglesiasce or @lachie83 to just double-check the version bump before this gets merged. |
0465e2b
to
01a308b
Compare
/ok-to-test |
@viglesiasce please merge #1401 before this one. |
a5f000e
to
6bcd73c
Compare
Merge conflicts have been fixed. |
Adding supports for dynamically applying a node selector to allow the pods to runs on specific nodes. See https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector for more details.
Adding supports for dynamically allowing the pods to runs on tainted nodes using tolerations.
See https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#taints-and-tolerations-beta-feature for more details.