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:
parent
4576a4fe1a
commit
842f811767
@ -1,8 +1,9 @@
|
|||||||
{{- if .Values.fluentbit.enabled }}
|
{{- if .Values.fluentbit.enabled }}
|
||||||
apiVersion: fluentbit.fluent.io/v1alpha2
|
apiVersion: fluentbit.fluent.io/v1alpha2
|
||||||
kind: ClusterParser
|
kind: Parser
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-log-parser
|
name: {{ .Release.Name }}-log-parser
|
||||||
|
namespace: {{ .Release.Namespace | quote }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}-log-parser
|
app.kubernetes.io/name: {{ .Release.Name }}-log-parser
|
||||||
spec:
|
spec:
|
||||||
@ -11,9 +12,10 @@ spec:
|
|||||||
timeFormat: {{ .Values.fluentbit.timeFormat | quote }}
|
timeFormat: {{ .Values.fluentbit.timeFormat | quote }}
|
||||||
---
|
---
|
||||||
apiVersion: fluentbit.fluent.io/v1alpha2
|
apiVersion: fluentbit.fluent.io/v1alpha2
|
||||||
kind: ClusterOutput
|
kind: Output
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-log-output
|
name: {{ .Release.Name }}-log-output
|
||||||
|
namespace: {{ .Release.Namespace | quote }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}-log-output
|
app.kubernetes.io/name: {{ .Release.Name }}-log-output
|
||||||
spec:
|
spec:
|
||||||
@ -23,22 +25,11 @@ spec:
|
|||||||
port: 24224
|
port: 24224
|
||||||
---
|
---
|
||||||
apiVersion: fluentbit.fluent.io/v1alpha2
|
apiVersion: fluentbit.fluent.io/v1alpha2
|
||||||
kind: ClusterInput
|
kind: FluentBitConfig
|
||||||
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
|
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-log-collector-config
|
name: {{ .Release.Name }}-log-collector-config
|
||||||
|
namespace: {{ .Release.Namespace | quote }}
|
||||||
spec:
|
spec:
|
||||||
inputSelector:
|
|
||||||
matchLabels:
|
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}-log-input
|
|
||||||
outputSelector:
|
outputSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}-log-output
|
app.kubernetes.io/name: {{ .Release.Name }}-log-output
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user