Skip to content

Commit

Permalink
feat(helm): collect logs from dask pods (reanahub#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alputer committed Nov 26, 2024
1 parent d81a814 commit 8200d19
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions helm/reana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,16 @@ fluent-bit:
Refresh_Interval {{ .Values.inputConfig.refreshInterval }}
Rotate_Wait {{ .Values.inputConfig.rotateWait }}
[INPUT]
Name tail
Path /var/log/containers/{{ include "reana.prefix" . }}-run-dask-*
multiline.parser docker, cri
Tag kube.*
Skip_Long_Lines {{ .Values.inputConfig.skipLongLines }}
Skip_Empty_Lines {{ .Values.inputConfig.skipEmptyLines }}
Refresh_Interval {{ .Values.inputConfig.refreshInterval }}
Rotate_Wait {{ .Values.inputConfig.rotateWait }}
## https://docs.fluentbit.io/manual/pipeline/filters
filters: |
[FILTER]
Expand Down Expand Up @@ -541,6 +551,24 @@ fluent-bit:
{{ if .Values.outputConfig.tlsKeyFile }}tls.key_file {{ .Values.outputConfig.tlsKeyFile }}{{- end }}
{{ if .Values.outputConfig.tlsKeyPassword }}tls.key_password {{ .Values.outputConfig.tlsKeyPassword }}{{- end }}
[OUTPUT]
Name opensearch
Match kube.var.log.containers.{{ include "reana.prefix" . }}-run-dask-*
Host {{ .Values.outputConfig.host }}
{{- if .Values.outputConfig.httpPasswd }}
HTTP_User {{ .Values.outputConfig.httpUser }}
HTTP_Passwd {{ .Values.outputConfig.httpPasswd }}
{{- end }}
Index fluentbit-dask_log
Suppress_Type_Name On
tls {{ .Values.outputConfig.tls }}
tls.verify {{ .Values.outputConfig.tlsVerify }}
tls.verify_hostname {{ .Values.outputConfig.tlsVerifyHostname }}
{{ if .Values.outputConfig.tlsCaFile }}tls.ca_file {{ .Values.outputConfig.tlsCaFile }}{{- end }}
{{ if .Values.outputConfig.tlsCrtFile }}tls.crt_file {{ .Values.outputConfig.tlsCrtFile }}{{- end }}
{{ if .Values.outputConfig.tlsKeyFile }}tls.key_file {{ .Values.outputConfig.tlsKeyFile }}{{- end }}
{{ if .Values.outputConfig.tlsKeyPassword }}tls.key_password {{ .Values.outputConfig.tlsKeyPassword }}{{- end }}
## https://docs.fluentbit.io/manual/pipeline/parsers
customParsers: |
[PARSER]
Expand Down

0 comments on commit 8200d19

Please sign in to comment.