rancher-charts/packages/rancher-logging/overlay/templates/loggings/k3s/logging-k3s-systemd.yaml

21 lines
584 B
YAML
Raw Normal View History

2020-08-21 16:28:01 +00:00
{{- if and .Values.additionalLoggingSources.k3s.enabled (eq .Values.additionalLoggingSources.k3s.container_engine "systemd")}}
2020-08-19 19:43:00 +00:00
apiVersion: logging.banzaicloud.io/v1beta1
kind: Logging
metadata:
2020-08-21 16:28:01 +00:00
name: {{ .Release.Name }}-k3s
2020-08-19 19:43:00 +00:00
namespace: {{ .Release.Namespace }}
2020-08-21 16:28:01 +00:00
labels:
{{ include "logging-operator.labels" . | indent 4 }}
2020-08-19 19:43:00 +00:00
spec:
controlNamespace: {{ .Release.Namespace }}
fluentbit:
inputTail:
Tag: "k3s"
Path: "/var/log/syslog"
extraVolumeMounts:
- source: "/var/log/"
destination: "/var/log"
readOnly: true
fluentd: {}
{{- end }}