Skip to content

Commit

Permalink
feat(otellogs): support tolerations, nodeSelector and affinity for da…
Browse files Browse the repository at this point in the history
…emonset (#2158)

* feat(otellogs): support tolerations, nodeSelector and affinity for daemonset

Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>

* docs(changelog): update

Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
  • Loading branch information
sumo-drosiek authored Mar 1, 2022
1 parent ebbd7f8 commit d22bbe5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- feat(metrics): drop container label for non-container kube state metrics [#2144][#2144]
- feat(fluent-bit): drop all capabilities for container [#2151][#2151]
- feat: allow to collect logs from /var/log/pods and add instruction how to do it [#2153][#2153] [#2156][#2156]
- feat(otellogs): support tolerations, nodeSelector and affinity for daemonset [#2158][#2158]

### Fixed

Expand All @@ -35,6 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#2151]: https://github.com/SumoLogic/sumologic-kubernetes-collection/pull/2151
[#2153]: https://github.com/SumoLogic/sumologic-kubernetes-collection/pull/2153
[#2156]: https://github.com/SumoLogic/sumologic-kubernetes-collection/pull/2156
[#2158]: https://github.com/SumoLogic/sumologic-kubernetes-collection/pull/2158

## [v2.5.2]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ spec:
{{ toYaml .Values.otellogs.daemonset.podLabels | indent 8 }}
{{- end }}
spec:
{{- if .Values.otellogs.daemonset.nodeSelector }}
nodeSelector:
{{ toYaml .Values.otellogs.daemonset.nodeSelector | indent 8 }}
{{- end }}
{{- if or .Values.otellogs.daemonset.affinity }}
affinity:
{{ toYaml .Values.otellogs.daemonset.affinity | indent 8 }}
{{- end }}
{{- if .Values.otellogs.daemonset.tolerations }}
tolerations:
{{ toYaml .Values.otellogs.daemonset.tolerations | indent 8 }}
{{- end }}
securityContext:
{{- toYaml .Values.otellogs.daemonset.securityContext | nindent 8 }}
{{- if .Values.otellogs.daemonset.priorityClassName }}
Expand Down
3 changes: 3 additions & 0 deletions deploy/helm/sumologic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4653,6 +4653,9 @@ otellogs:
otelcol:
securityContext: {}

nodeSelector: {}
tolerations: []
affinity: {}

## Configure telegraf-operator
## ref: https://github.com/influxdata/helm-charts/blob/master/charts/telegraf-operator/values.yaml
Expand Down

0 comments on commit d22bbe5

Please sign in to comment.