|
2 | 2 |
|
3 | 3 |
|
4 | 4 |
|
5 |
| -[Fluent Bit](http://fluentbit.io) is a lightweight and extensible __Log Processor__ that comes with full support for Kubernetes: |
| 5 | +[Fluent Bit](http://fluentbit.io) is a lightweight and extensible __Log and Metrics Processor__ that comes with full support for Kubernetes: |
6 | 6 |
|
7 | 7 | - Read Kubernetes/Docker log files from the file system or through systemd Journal
|
8 | 8 | - Enrich logs with Kubernetes metadata
|
9 |
| -- Deliver logs to third party storage services like Elasticsearch, InfluxDB, HTTP, etc. |
| 9 | +- Deliver logs to third party services like Elasticsearch, Splunk, Datadog, InfluxDB, HTTP, etc. |
10 | 10 |
|
11 | 11 | This repository contains a set of Yaml files to deploy Fluent Bit which consider namespace, RBAC, Service Account, etc.
|
12 | 12 |
|
13 | 13 | ## Getting started
|
14 | 14 |
|
15 | 15 | [Fluent Bit](http://fluentbit.io) must be deployed as a DaemonSet so that it will be available on every node of your Kubernetes cluster. To get started run the following commands to create the namespace, service account and role setup:
|
16 | 16 |
|
| 17 | + |
| 18 | +For Kubernetes v1.21 and below |
| 19 | + |
17 | 20 | ```
|
18 | 21 | $ kubectl create namespace logging
|
19 | 22 | $ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-service-account.yaml
|
20 | 23 | $ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-role.yaml
|
21 | 24 | $ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-role-binding.yaml
|
22 | 25 | ```
|
23 | 26 |
|
| 27 | +For Kubernetes v1.22 and above |
| 28 | + |
| 29 | +``` |
| 30 | +$ kubectl create namespace logging |
| 31 | +$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-service-account.yaml |
| 32 | +$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-role-1.22.yaml |
| 33 | +$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-role-binding-1.22.yaml |
| 34 | +``` |
| 35 | + |
| 36 | + |
24 | 37 | If you are deploying fluent-bit on openshift, you additionally need to run:
|
25 | 38 |
|
26 | 39 | ```
|
27 | 40 | $ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-openshift-security-context-constraints.yaml
|
28 | 41 | ```
|
29 | 42 |
|
| 43 | + |
30 | 44 | #### Fluent Bit to Elasticsearch
|
31 | 45 |
|
32 | 46 | The next step is to create a ConfigMap that will be used by our Fluent Bit DaemonSet:
|
|
0 commit comments