Skip to content

Commit

Permalink
Add priorityClassName to DaemonSet/Logging/FluentBitAgent resources
Browse files Browse the repository at this point in the history
Signed-off-by: Meza <[email protected]>
  • Loading branch information
jmeza-xyz committed Feb 25, 2025
1 parent 3f63448 commit d553e44
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ spec:
{{- with .Values.nodeSelector }}
nodeSelector: {{- toYaml . | nindent 6 }}
{{- end }}
{{- with (default .Values.priorityClassName .Values.fluentd.podPriorityClassName) }}
podPriorityClassName: {{ . }}
{{- end }}
{{- with .Values.fluentbit.resources }}
resources: {{- toYaml . | nindent 6 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ spec:
{{- with (default .Values.tolerations .Values.fluentd.tolerations) }}
tolerations: {{- toYaml . | nindent 6 }}
{{- end }}
{{- with (default .Values.priorityClassName .Values.fluentd.podPriorityClassName) }}
podPriorityClassName: {{ . }}
{{- end }}
{{- with (default .Values.nodeSelector .Values.fluentd.nodeSelector) }}
nodeSelector: {{- toYaml . | nindent 6 }}
{{- end }}
Expand Down Expand Up @@ -72,4 +75,4 @@ spec:

{{- define "logging-operator.logging" -}}
{{- include "logging-operator.util.merge.logging" (append . "logging-operator.logging.tpl") -}}
{{- end -}}
{{- end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ spec:
{{- with .Values.nodeSelector }}
nodeSelector: {{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
serviceAccountName: "{{ .Release.Name }}-k3s-journald-aggregator"
volumes:
- name: config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ spec:
{{- with .Values.nodeSelector }}
nodeSelector: {{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
---
apiVersion: v1
kind: ServiceAccount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ spec:
{{- with .Values.nodeSelector }}
nodeSelector: {{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
serviceAccountName: "{{ .Release.Name }}-rke2-journald-aggregator"
volumes:
- name: config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
# -- storage class for event tailer pvc
accessModes:
- ReadWriteOnce
@@ -309,14 +304,176 @@
@@ -309,14 +304,178 @@
image: fluent/fluent-bit
pullPolicy: IfNotPresent
port: 8080
Expand Down Expand Up @@ -186,6 +186,7 @@
+ initialDelaySeconds: 30
+ periodSeconds: 15
+ nodeSelector: {}
+ podPriorityClassName: ""
+ resources: {}
+ tolerations: {}
+ env: []
Expand All @@ -201,6 +202,7 @@
+ Mem_Buf_Limit: ""
+ Multiline_Flush: ""
+ Skip_Long_Lines: ""
+ podPriorityClassName: ""
+ resources: {}
+ tolerations:
+ - key: node-role.kubernetes.io/control-plane
Expand All @@ -221,7 +223,7 @@

# -- Extra manifests to deploy as an array
extraManifests: []
@@ -327,3 +484,12 @@
@@ -327,3 +486,12 @@
# name: extra-manifest
# data:
# extra-data: "value"
Expand Down

0 comments on commit d553e44

Please sign in to comment.