Unverified Commit afb6e0ba authored by Yevgeniy Korin's avatar Yevgeniy Korin Committed by GitHub

Make sidecar default resources configurable (#502)

parent c84d13ba
...@@ -30,7 +30,7 @@ type: application ...@@ -30,7 +30,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes # This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version. # to the chart and its templates, including the app version.
version: 1.3.10 version: 1.3.11
# This is the version number of the application being deployed. This version number should be # This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. # incremented each time you make changes to the application.
......
...@@ -33,6 +33,10 @@ spec: ...@@ -33,6 +33,10 @@ spec:
{{- if eq .Values.requireAnnotationsForSecret true }} {{- if eq .Values.requireAnnotationsForSecret true }}
- "--require-annotations-for-secret" - "--require-annotations-for-secret"
{{- end }} {{- end }}
- "--telegraf-requests-cpu={{ .Values.sidecarResources.requests.cpu }}"
- "--telegraf-requests-memory={{ .Values.sidecarResources.requests.memory }}"
- "--telegraf-limits-cpu={{ .Values.sidecarResources.limits.cpu }}"
- "--telegraf-limits-memory={{ .Values.sidecarResources.limits.memory }}"
{{- if eq .Values.hotReload true }} {{- if eq .Values.hotReload true }}
- "--telegraf-watch-config=inotify" - "--telegraf-watch-config=inotify"
{{- end }} {{- end }}
......
...@@ -42,6 +42,13 @@ resources: ...@@ -42,6 +42,13 @@ resources:
requests: requests:
cpu: 50m cpu: 50m
memory: 64Mi memory: 64Mi
sidecarResources:
limits:
cpu: 200m
memory: 200Mi
requests:
cpu: 10m
memory: 10Mi
nodeSelector: {} nodeSelector: {}
tolerations: [] tolerations: []
affinity: {} affinity: {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment