Skip to content

Commit

Permalink
Add affinity support for fluent-operator deployment (#1401)
Browse files Browse the repository at this point in the history
* Add affinity to helm chart

Signed-off-by: Anson Liu <[email protected]>

* Apply suggestions from code review

Signed-off-by: Benjamin Huo <[email protected]>

---------

Signed-off-by: Anson Liu <[email protected]>
Signed-off-by: Benjamin Huo <[email protected]>
Co-authored-by: Benjamin Huo <[email protected]>
  • Loading branch information
smallc2009 and benjaminhuo authored Nov 8, 2024
1 parent d33b950 commit b1f0648
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/fluent-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords:
- fluent-bit
- fluentd
- operator
version: 3.2.0
version: 3.2.1
appVersion: 3.2.0
icon: https://raw.githubusercontent.com/fluent/fluent-operator/master/docs/images/fluent-operator-icon.svg
home: https://www.fluentd.org/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ spec:
nodeSelector:
{{ toYaml .Values.operator.nodeSelector | nindent 8 }}
{{- end }}
{{- if .Values.operator.affinity }}
affinity:
{{ toYaml .Values.operator.affinity | nindent 8 }}
{{- end }}
{{- if .Values.operator.podSecurityContext }}
securityContext:
{{ toYaml .Values.operator.podSecurityContext | nindent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/fluent-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ operator:
enable: true
# nodeSelector configuration for Fluent Operator. Ref: https://kubernetes.io/docs/user-guide/node-selection/
nodeSelector: {}
# affinity configuration for Fluent Operator. Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity
affinity: {}
# Node tolerations applied to Fluent Operator. Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
tolerations: []
# Priority class applied to Fluent Operator. Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass
Expand Down

0 comments on commit b1f0648

Please sign in to comment.