You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/logging-infrastructure/fluentbit.md
+61-82Lines changed: 61 additions & 82 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,12 +36,12 @@ To migrate your **spec.fluentbit** configuration from the Logging resource to a
36
36
37
37
```yaml
38
38
apiVersion: logging.banzaicloud.io/v1beta1
39
-
kind: Logging
39
+
kind: FluentbitAgent
40
40
metadata:
41
-
name: example-logging-resource
41
+
name: example
42
42
spec:
43
-
fluentd: {}
44
-
fluentbit:
43
+
inputTail:
44
+
storage.type: filesystem
45
45
positiondb:
46
46
hostPath:
47
47
path: ""
@@ -72,6 +72,8 @@ To migrate your **spec.fluentbit** configuration from the Logging resource to a
72
72
# Use the name of the logging resource
73
73
name: example-logging-resource
74
74
spec:
75
+
inputTail:
76
+
storage.type: filesystem
75
77
positiondb:
76
78
hostPath:
77
79
path: ""
@@ -100,16 +102,12 @@ Fluent Bit Kubernetes Filter allows you to enrich your log files with Kubernetes
100
102
101
103
```yaml
102
104
apiVersion: logging.banzaicloud.io/v1beta1
103
-
kind: Logging
105
+
kind: FluentbitAgent
104
106
metadata:
105
-
name: default-logging-simple
107
+
name: default
106
108
spec:
107
-
fluentd: {}
108
-
fluentbit:
109
-
filterKubernetes:
110
-
Kube_URL: "https://kubernetes.default.svc:443"
111
-
Match: "kube.*"
112
-
controlNamespace: logging
109
+
filterKubernetes:
110
+
Kube_URL: "https://kubernetes.default.svc:443"
113
111
```
114
112
115
113
For the detailed list of available parameters for this plugin, see {{% xref "/docs/configuration/crds/v1beta1/fluentbit_types.md#filterkubernetes" %}}.
@@ -121,16 +119,14 @@ The tail input plugin allows to monitor one or several text files. It has a simi
121
119
122
120
```yaml
123
121
apiVersion: logging.banzaicloud.io/v1beta1
124
-
kind: Logging
122
+
kind: FluentbitAgent
125
123
metadata:
126
124
name: default-logging-simple
127
125
spec:
128
-
fluentd: {}
129
-
fluentbit:
130
-
inputTail:
131
-
Refresh_Interval: "60"
132
-
Rotate_Wait: "5"
133
-
controlNamespace: logging
126
+
inputTail:
127
+
storage.type: filesystem
128
+
Refresh_Interval: "60"
129
+
Rotate_Wait: "5"
134
130
```
135
131
136
132
For the detailed list of available parameters for this plugin, see {{% xref "/docs/configuration/crds/v1beta1/fluentbit_types.md#inputtail" %}}.
@@ -142,15 +138,14 @@ Buffering in Fluent Bit places the processed data into a temporal location until
142
138
143
139
```yaml
144
140
apiVersion: logging.banzaicloud.io/v1beta1
145
-
kind: Logging
141
+
kind: FluentbitAgent
146
142
metadata:
147
143
name: default-logging-simple
148
144
spec:
149
-
fluentd: {}
150
-
fluentbit:
151
-
bufferStorage:
152
-
storage.path: /buffers
153
-
controlNamespace: logging
145
+
inputTail:
146
+
storage.type: filesystem
147
+
bufferStorage:
148
+
storage.path: /buffers
154
149
```
155
150
156
151
For the detailed list of available parameters for this plugin, see {{% xref "/docs/configuration/crds/v1beta1/fluentbit_types.md#bufferstorage" %}}.
@@ -160,40 +155,34 @@ For the detailed list of available parameters for this plugin, see {{% xref "/do
160
155
161
156
```yaml
162
157
apiVersion: logging.banzaicloud.io/v1beta1
163
-
kind: Logging
158
+
kind: FluentbitAgent
164
159
metadata:
165
160
name: default-logging-simple
166
161
spec:
167
-
fluentd: {}
168
-
fluentbit:
169
-
bufferStorageVolume:
170
-
hostPath:
171
-
path: "" # leave it empty to automatically generate
172
-
positiondb:
173
-
hostPath:
174
-
path: "" # leave it empty to automatically generate
175
-
controlNamespace: logging
162
+
inputTail:
163
+
storage.type: filesystem
164
+
bufferStorageVolume:
165
+
hostPath:
166
+
path: "" # leave it empty to automatically generate
167
+
positiondb:
168
+
hostPath:
169
+
path: "" # leave it empty to automatically generate
176
170
```
177
171
178
172
## Custom Fluent Bit image
179
173
180
-
You can deploy custom images by overriding the default images using the following parameters in the fluentd or fluentbit sections of the logging resource.
181
-
182
-
The following example deploys a custom fluentd image:
174
+
You can deploy custom images by overriding the default images using the following parameters.
183
175
184
176
```yaml
185
177
apiVersion: logging.banzaicloud.io/v1beta1
186
-
kind: Logging
178
+
kind: FluentbitAgent
187
179
metadata:
188
180
name: default-logging-simple
189
181
spec:
190
-
fluentd:
191
-
image:
192
-
repository: banzaicloud/fluentd
193
-
tag: v1.10.4-alpine-1
194
-
pullPolicy: IfNotPresent
195
-
fluentbit: {}
196
-
controlNamespace: logging
182
+
image:
183
+
repository: fluent/fluent-bit
184
+
tag: 2.1.8-debug
185
+
pullPolicy: IfNotPresent
197
186
```
198
187
199
188
## Volume Mount
@@ -202,17 +191,14 @@ Defines a pod volume mount. For example:
202
191
203
192
```yaml
204
193
apiVersion: logging.banzaicloud.io/v1beta1
205
-
kind: Logging
194
+
kind: FluentbitAgent
206
195
metadata:
207
-
name: default-logging-tls
196
+
name: default-logging
208
197
spec:
209
-
fluentd: {}
210
-
fluentbit:
211
-
extraVolumeMounts:
212
-
- source: /opt/docker
213
-
destination: /opt/docker
214
-
readOnly: true
215
-
controlNamespace: logging
198
+
extraVolumeMounts:
199
+
- destination: /data/docker/containers
200
+
readOnly: true
201
+
source: /data/docker/containers
216
202
```
217
203
218
204
For the detailed list of available parameters for this plugin, see {{% xref "/docs/configuration/crds/v1beta1/fluentbit_types.md#volumemount" %}}.
@@ -221,15 +207,12 @@ For the detailed list of available parameters for this plugin, see {{% xref "/do
221
207
222
208
```yaml
223
209
apiVersion: logging.banzaicloud.io/v1beta1
224
-
kind: Logging
210
+
kind: FluentbitAgent
225
211
metadata:
226
212
name: default-logging-simple
227
213
spec:
228
-
fluentd: {}
229
-
fluentbit:
230
-
annotations:
231
-
my-annotations/enable: true
232
-
controlNamespace: logging
214
+
annotations:
215
+
my-annotations/enable: true
233
216
```
234
217
235
218
## KubernetesStorage
@@ -249,30 +232,26 @@ A [Probe](https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#cont
0 commit comments