fix: update resource kinds to Parser and Output for consistency and correct configuration

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-04-16 01:07:46 +08:00
parent 4576a4fe1a
commit 842f811767

View File

@ -1,8 +1,9 @@
{{- if .Values.fluentbit.enabled }}
apiVersion: fluentbit.fluent.io/v1alpha2
kind: ClusterParser
kind: Parser
metadata:
name: {{ .Release.Name }}-log-parser
namespace: {{ .Release.Namespace | quote }}
labels:
app.kubernetes.io/name: {{ .Release.Name }}-log-parser
spec:
@ -11,9 +12,10 @@ spec:
timeFormat: {{ .Values.fluentbit.timeFormat | quote }}
---
apiVersion: fluentbit.fluent.io/v1alpha2
kind: ClusterOutput
kind: Output
metadata:
name: {{ .Release.Name }}-log-output
namespace: {{ .Release.Namespace | quote }}
labels:
app.kubernetes.io/name: {{ .Release.Name }}-log-output
spec:
@ -23,22 +25,11 @@ spec:
port: 24224
---
apiVersion: fluentbit.fluent.io/v1alpha2
kind: ClusterInput
metadata:
name: {{ .Release.Name }}-log-input
spec:
tail:
path: {{ .Values.fluentbit.logPath | quote }}
parser: {{ .Release.Name }}-log-parser
---
apiVersion: fluentbit.fluent.io/v1alpha2
kind: ClusterFluentBitConfig
kind: FluentBitConfig
metadata:
name: {{ .Release.Name }}-log-collector-config
namespace: {{ .Release.Namespace | quote }}
spec:
inputSelector:
matchLabels:
app.kubernetes.io/name: {{ .Release.Name }}-log-input
outputSelector:
matchLabels:
app.kubernetes.io/name: {{ .Release.Name }}-log-output