Skip to content

Commit

Permalink
Update CRD and CR yaml files
Browse files Browse the repository at this point in the history
Signed-off-by: Xudong Sun <[email protected]>
  • Loading branch information
marshtompsxd committed Aug 2, 2023
1 parent f8d3d66 commit f50bf7a
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 4 deletions.
10 changes: 7 additions & 3 deletions deploy/fluent/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ spec:
categories: []
kind: FluentBit
plural: fluentbits
shortNames: []
shortNames:
- fb
singular: fluentbit
scope: Namespaced
versions:
Expand All @@ -20,10 +21,13 @@ spec:
properties:
spec:
properties:
config:
fluentBitConfig:
type: string
parsersConfig:
type: string
required:
- config
- fluentBitConfig
- parsersConfig
type: object
required:
- spec
Expand Down
49 changes: 48 additions & 1 deletion deploy/fluent/fluentbit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,51 @@ metadata:
name: fluent-bit
namespace: default
spec:
config: whatever
fluentBitConfig: |
[Service]
Parsers_File parsers.conf
[Input]
Name tail
Path /var/log/containers/*.log
Exclude_Path /var/log/containers/utils_default_utils-*.log
Refresh_Interval 10
Skip_Long_Lines true
DB /fluent-bit/tail/pos.db
DB.Sync Normal
Mem_Buf_Limit 5MB
Parser docker
Tag kube.*
[Filter]
Name kubernetes
Match kube.*
Kube_URL https://kubernetes.default.svc:443
Kube_CA_File /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
Kube_Token_File /var/run/secrets/kubernetes.io/serviceaccount/token
Labels false
Annotations false
[Filter]
Name nest
Match kube.*
Operation lift
Nested_under kubernetes
Add_prefix kubernetes_
[Filter]
Name modify
Match kube.*
Remove stream
Remove kubernetes_pod_id
Remove kubernetes_host
Remove kubernetes_container_hash
[Filter]
Name nest
Match kube.*
Operation nest
Wildcard kubernetes_*
Nest_under kubernetes
Remove_prefix kubernetes_
[Output]
Name kafka
Match_Regex (?:kube|service)\.(.*)
Brokers my-cluster-kafka-brokers.kafka.svc:9092
Topics fluent-log
parsersConfig: ""

0 comments on commit f50bf7a

Please sign in to comment.