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
| db | Set a database file to keep track of recorded Kubernetes events ||
16
16
| db.sync | Set a database sync method. values: extra, full, normal and off | normal |
17
-
| interval_sec | Set the polling interval for each channel.| 0 |
18
-
| interval_nsec | Set the polling interval for each channel (sub seconds: nanoseconds) | 500000000 |
17
+
| interval_sec | Set the reconnect interval (seconds)*| 0 |
18
+
| interval_nsec | Set the reconnect interval (sub seconds: nanoseconds)*| 500000000 |
19
19
| kube_url | API Server end-point |https://kubernetes.default.svc|
20
20
| kube_ca_file | Kubernetes TLS CA file | /var/run/secrets/kubernetes.io/serviceaccount/ca.crt |
21
21
| kube_ca_path | Kubernetes TLS ca path ||
@@ -28,8 +28,18 @@ Kubernetes exports it events through the API server. This input plugin allows to
28
28
| tls.verify | Enable or disable verification of TLS peer certificate. | On |
29
29
| tls.vhost | Set optional TLS virtual host. ||
30
30
31
+
32
+
-_* As of Fluent-Bit 3.1, this plugin uses a Kubernetes watch stream instead of polling. In versions before 3.1, the interval parameters are used for reconnecting the Kubernetes watch stream._
33
+
34
+
31
35
## Getting Started
32
36
37
+
### Kubernetes Service Account
38
+
The Kubernetes service account used by Fluent Bit must have `get`, `list`, and `watch`
39
+
permissions to `namespaces` and `pods` for the namespaces watched in the
40
+
`kube_namespace` configuration parameter. If you're using the helm chart to configure
41
+
Fluent Bit, this role is included.
42
+
33
43
### Simple Configuration File
34
44
35
45
In the following configuration file, the input plugin *kubernetes_events* collects events every 5 seconds (default for *interval_nsec*) and exposes them through the [standard output plugin](../outputs/standard-output.md) on the console.
0 commit comments