-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvalues.yaml
More file actions
80 lines (73 loc) · 2.64 KB
/
Copy pathvalues.yaml
File metadata and controls
80 lines (73 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
imageOrg: "drycc"
imagePullPolicy: "Always"
imageTag: "canary"
imageRegistry: "registry.drycc.cc"
# limitsCpu: "100m"
# limitsMemory: "50Mi"
redis:
replicas: 1
## https://docs.fluentbit.io/manual/administration/configuring-fluent-bit/classic-mode/configuration-file
config:
service: |
[SERVICE]
Flush 1
Daemon Off
Log_Level info
Plugins_File /opt/drycc/fluent-bit/etc/fluent-bit/plugins.conf
Parsers_File /opt/drycc/fluent-bit/etc/fluent-bit/parsers.conf
## https://docs.fluentbit.io/manual/pipeline/inputs
inputs: |
[INPUT]
Name tail
Path /var/log/containers/*.log
DB /var/log/containers.pos.db
DB.locking true
Offset_Key offset
Tag kubernetes.*
Read_from_Head true
multiline.parser docker,cri
## https://docs.fluentbit.io/manual/pipeline/filters
filters: |
[FILTER]
Name kubernetes
Match kubernetes.*
Kube_URL https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT}
Kube_CA_File /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
Kube_Token_File /var/run/secrets/kubernetes.io/serviceaccount/token
Kube_Tag_Prefix kubernetes.var.log.containers.
tls.verify false
## https://docs.fluentbit.io/manual/pipeline/outputs
outputs: |
[OUTPUT]
Name drycc
Match *
Addrs ${DRYCC_REDIS_ADDRS}
Stream drycc
Max_Len 3000
Password ${DRYCC_REDIS_PASSWORD}
Controller_Name drycc-controller
Controller_Regex ^(INFO|WARN|DEBUG|ERROR)\s+(\[(\S+)\])+:(.*)
Exclude_Namespaces drycc,drycc-manager,drycc-helmbroker,kube-system,metallb
## https://docs.fluentbit.io/manual/pipeline/parsers
parsers: |
[PARSER]
Name docker
Format json
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S.%L
Time_Keep On
[PARSER]
# http://rubular.com/r/tjUt3Awgg4
Name cri
Format regex
Regex ^(?<time>[^ ]+) (?<stream>stdout|stderr) (?<logtag>[^ ]*) (?<message>.*)$
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S.%L%z
Time_Keep On
## https://docs.fluentbit.io/manual/development/golang-output-plugins
plugins: |
[PLUGINS]
Path ${FLUENT_BIT_PLUGINS_PATH}/out_drycc.so
# Role-Based Access Control for Kubernetes >= 1.5
global:
rbac: false