2021-11-10 19:24:57 +00:00
|
|
|
{{- define "logging-operator.logging.k3s-openrc" -}}
|
|
|
|
{{- $logPath := "/var/log/k3s.log" -}}
|
2021-05-17 22:30:18 +00:00
|
|
|
metadata:
|
|
|
|
name: {{ .Release.Name }}-k3s
|
|
|
|
spec:
|
|
|
|
fluentbit:
|
2021-11-10 19:24:57 +00:00
|
|
|
disableKubernetesFilter: true
|
|
|
|
extraVolumeMounts:
|
|
|
|
- source: {{ $logPath }}
|
|
|
|
destination: {{ $logPath }}
|
|
|
|
readOnly: true
|
2021-05-17 22:30:18 +00:00
|
|
|
inputTail:
|
|
|
|
Tag: "k3s"
|
2021-11-10 19:24:57 +00:00
|
|
|
Path: {{ $logPath }}
|
2021-06-29 04:39:07 +00:00
|
|
|
Path_Key: filename
|
2021-11-10 19:24:57 +00:00
|
|
|
{{- end -}}
|
|
|
|
{{- if and .Values.additionalLoggingSources.k3s.enabled (eq .Values.additionalLoggingSources.k3s.container_engine "openrc")}}
|
|
|
|
{{- include "logging-operator.logging" (list . "logging-operator.logging.k3s-openrc") -}}
|
2021-05-17 22:30:18 +00:00
|
|
|
{{- end }}
|