Skip to content

Commit 3057b50

Browse files
in_kubernetes_events: add k8s permission details (#1396)
* in_kubernetes_events: add k8s permission details fluent/fluent-bit#8351 Signed-off-by: ryanohnemus <[email protected]> * Update pipeline/inputs/kubernetes-events.md Co-authored-by: Adam Locke <[email protected]> Signed-off-by: Ryan Ohnemus <[email protected]> * Update pipeline/inputs/kubernetes-events.md Co-authored-by: Adam Locke <[email protected]> Signed-off-by: Ryan Ohnemus <[email protected]> * Add hard return to break section Signed-off-by: Adam Locke <[email protected]> --------- Signed-off-by: ryanohnemus <[email protected]> Signed-off-by: Ryan Ohnemus <[email protected]> Signed-off-by: Adam Locke <[email protected]> Co-authored-by: Adam Locke <[email protected]>
1 parent 1389025 commit 3057b50

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

pipeline/inputs/kubernetes-events.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Kubernetes exports it events through the API server. This input plugin allows to
1414
|---------------------|---------------------------------------------------------------------------------------|------------------------------------------------------|
1515
| db | Set a database file to keep track of recorded Kubernetes events | |
1616
| 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 |
1919
| kube_url | API Server end-point | https://kubernetes.default.svc |
2020
| kube_ca_file | Kubernetes TLS CA file | /var/run/secrets/kubernetes.io/serviceaccount/ca.crt |
2121
| kube_ca_path | Kubernetes TLS ca path | |
@@ -28,8 +28,18 @@ Kubernetes exports it events through the API server. This input plugin allows to
2828
| tls.verify | Enable or disable verification of TLS peer certificate. | On |
2929
| tls.vhost | Set optional TLS virtual host. | |
3030

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+
3135
## Getting Started
3236

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+
3343
### Simple Configuration File
3444

3545
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

Comments
 (0)