2021-11-10 19:24:57 +00:00
|
|
|
{{- define "logging-operator.logging.eks" -}}
|
|
|
|
{{- $logPath := "/var/log/messages" -}}
|
2021-05-17 22:30:18 +00:00
|
|
|
metadata:
|
|
|
|
name: {{ .Release.Name }}-eks
|
|
|
|
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: "eks"
|
2021-11-10 19:24:57 +00:00
|
|
|
Path: {{ $logPath }}
|
2021-05-17 22:30:18 +00:00
|
|
|
Parser: "syslog"
|
2021-11-10 19:24:57 +00:00
|
|
|
{{- end -}}
|
|
|
|
{{- if .Values.additionalLoggingSources.eks.enabled }}
|
|
|
|
{{- include "logging-operator.logging" (list . "logging-operator.logging.eks") -}}
|
2021-05-17 22:30:18 +00:00
|
|
|
{{- end }}
|