Skip to content

Commit 4e74e36

Browse files
worrpepov
authored andcommitted
Add support for tolerations in helm charts
1 parent 0ec91f7 commit 4e74e36

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

charts/logging-operator-fluent/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ This chart applies Fluentd and Fluent-bit custom resources to [Logging Operator]
3131
| `fluentbit.image.tag` | Fluentbit container image tag | `1.1.3` |
3232
| `fluentbit.image.repository` | Fluentbit container image repository | `fluent/fluent-bit` |
3333
| `fluentbit.image.pullPolicy` | Fluentbit container pull policy | `IfNotPresent` |
34+
| `fluentbit.tolerations` | Fluentbit tolerations | `nil` |
3435
| `fluentd.enabled` | Install fluentd | true |
3536
| `fluentd.namespace` | Specified fluentd installation namespace | same as operator namespace |
3637
| `fluentd.image.tag` | Fluentd container image tag | `v1.5.0` |
@@ -44,4 +45,5 @@ This chart applies Fluentd and Fluent-bit custom resources to [Logging Operator]
4445
| `fluentd.configReloaderImage.pullPolicy` | Fluentd configReloaderImage container pull policy | `IfNotPresent` |
4546
| `fluentd.fluentdPvcSpec.accessModes` | Fluentd persistence volume access modes | `[ReadWriteOnce]` |
4647
| `fluentd.fluentdPvcSpec.resources.requests.storage` | Fluentd persistence volume size | `21Gi` |
48+
| `fluentd.tolerations` | Fluentd tolerations | `nil` |
4749
| `psp.enabled` | Install PodSecurityPolicy | `false` |

charts/logging-operator-fluent/templates/fluentbit-cr.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ spec:
1616
prometheus.io/port: "2020"
1717
image: {{ toYaml .Values.fluentbit.image | nindent 4 }}
1818
resources: {}
19+
{{- if .Values.fluentbit.tolerations }}
20+
tolerations: {{ toYaml .Values.fluentbit.tolerations | nindent 4 }}
21+
{{- end }}
1922
tls:
2023
enabled: {{ .Values.tls.enabled }}
2124
secretName: {{ .Values.tls.secretName | default (include "logging-operator-fluent.fullname" .) }}
2225
sharedKey: {{ .Values.tls.sharedKey | default (derivePassword 1 "long" (.Release.Time | toString) .Release.Name .Chart.Name ) | b64enc | quote }}
23-
{{ end }}
26+
{{ end }}

charts/logging-operator-fluent/templates/fluentd-cr.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ spec:
1919
configReloaderImage: {{ toYaml .Values.fluentd.configReloaderImage | nindent 4 }}
2020
resources: {}
2121
fluentdPvcSpec: {{ toYaml .Values.fluentd.fluentdPvcSpec | nindent 4 }}
22+
{{- if .Values.fluentd.tolerations }}
23+
tolerations: {{ toYaml .Values.fluentd.tolerations | nindent 4 }}
24+
{{- end }}
2225
tls:
2326
enabled: {{ .Values.tls.enabled }}
2427
secretName: {{ .Values.tls.secretName | default (include "logging-operator-fluent.fullname" .) }}
2528
sharedKey: {{ .Values.tls.sharedKey | default (derivePassword 1 "long" (.Release.Time | toString) .Release.Name .Chart.Name ) | b64enc | quote }}
2629
serviceType: {{ .Values.fluentd.serviceType | default "ClusterIP" | quote }}
27-
{{ end }}
30+
{{ end }}

charts/logging-operator-fluent/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ tls:
1010
fluentbit:
1111
enabled: true
1212
namespace: ""
13+
tolerations:
1314
image:
1415
tag: "1.1.3"
1516
repository: "fluent/fluent-bit"
@@ -30,6 +31,7 @@ fluentd:
3031
tag: "v0.2.2"
3132
repository: "jimmidyson/configmap-reload"
3233
pullPolicy: "IfNotPresent"
34+
tolerations:
3335
fluentdPvcSpec:
3436
accessModes:
3537
- ReadWriteOnce

0 commit comments

Comments
 (0)