fix: add ClusterInput configuration for Fluent Bit log collection
Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
parent
cf83b661d1
commit
f36a87eaca
@ -50,6 +50,17 @@ spec:
|
|||||||
port: 24224
|
port: 24224
|
||||||
---
|
---
|
||||||
apiVersion: fluentbit.fluent.io/v1alpha2
|
apiVersion: fluentbit.fluent.io/v1alpha2
|
||||||
|
kind: ClusterInput
|
||||||
|
metadata:
|
||||||
|
name: {{ .Release.Name }}-log-collector-input
|
||||||
|
labels:
|
||||||
|
fluentbit.fluent.io/enabled: "true"
|
||||||
|
spec:
|
||||||
|
tail:
|
||||||
|
path: {{ .Values.fluentbit.logPath | quote }}
|
||||||
|
parser: {{ .Release.Name }}-log-parser
|
||||||
|
---
|
||||||
|
apiVersion: fluentbit.fluent.io/v1alpha2
|
||||||
kind: FluentBitConfig
|
kind: FluentBitConfig
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-log-collector-config
|
name: {{ .Release.Name }}-log-collector-config
|
||||||
@ -66,15 +77,4 @@ spec:
|
|||||||
parserSelector:
|
parserSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}-log-collector
|
app.kubernetes.io/name: {{ .Release.Name }}-log-collector
|
||||||
---
|
|
||||||
apiVersion: fluentbit.fluent.io/v1alpha2
|
|
||||||
kind: ClusterInput
|
|
||||||
metadata:
|
|
||||||
name: {{ .Release.Name }}-log-collector-input
|
|
||||||
labels:
|
|
||||||
fluentbit.fluent.io/enabled: "true"
|
|
||||||
spec:
|
|
||||||
tail:
|
|
||||||
path: {{ .Values.fluentbit.logPath | quote }}
|
|
||||||
parser: {{ .Release.Name }}-log-parser
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
Loading…
Reference in New Issue
Block a user