Skip to content

Commit 5adb861

Browse files
authored
Merge pull request fluent#726 from wigust/fluentbit-affinity
Add fluentbit.affinity configuration
2 parents d41f58f + 1e907c6 commit 5adb861

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

charts/fluent-operator/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ description: A Helm chart for Kubernetes
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 2.2.0
18+
version: 2.2.1
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/fluent-operator/templates/fluentbit-fluentBit.yaml

+3-6
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,10 @@ spec:
3333
{{- if .Values.fluentbit.priorityClassName }}
3434
priorityClassName: {{ .Values.fluentbit.priorityClassName | quote }}
3535
{{- end }}
36+
{{- with .Values.fluentbit.affinity }}
3637
affinity:
37-
nodeAffinity:
38-
requiredDuringSchedulingIgnoredDuringExecution:
39-
nodeSelectorTerms:
40-
- matchExpressions:
41-
- key: node-role.kubernetes.io/edge
42-
operator: DoesNotExist
38+
{{ toYaml . | indent 4 }}
39+
{{- end }}
4340
{{- if .Values.fluentbit.secrets }}
4441
secrets:
4542
{{ toYaml .Values.fluentbit.secrets | indent 4 }}

charts/fluent-operator/values.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,14 @@ fluentbit:
9191
additionalVolumes: []
9292
# Pod volumes to mount into the container's filesystem.
9393
additionalVolumesMounts: []
94+
# affinity configuration for Fluent Bit pods. Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity
95+
affinity:
96+
nodeAffinity:
97+
requiredDuringSchedulingIgnoredDuringExecution:
98+
nodeSelectorTerms:
99+
- matchExpressions:
100+
- key: node-role.kubernetes.io/edge
101+
operator: DoesNotExist
94102
# nodeSelector configuration for Fluent Bit pods. Ref: https://kubernetes.io/docs/user-guide/node-selection/
95103
nodeSelector: {}
96104
# Node tolerations applied to Fluent Bit pods. Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/

0 commit comments

Comments
 (0)