Skip to content

Latest commit

 

History

History
62 lines (51 loc) · 1.43 KB

README.md

File metadata and controls

62 lines (51 loc) · 1.43 KB

fluentbit-example

Build image and push to dockerhub

First: login if needed

docker login

Then: build docker and push

docker build -t koskuma/example-log-generator:latest -f docker/Dockerfile .
docker push koskuma/example-log-generator:latest

In case you want to try running

docker run --name example-log-generator koskuma/example-log-generator

Docker run test database

docker run --name influxdb \
    -p 8086:8086 \
    -v influxdb:/var/lib/influxdb \
    -d influxdb
docker run --name elasticsearch \
    -p 9200:9200 -p 9300:9300 \
    -e "discovery.type=single-node" \
    -d docker.elastic.co/elasticsearch/elasticsearch:7.8.0

Before deployemnt - update fluent-bit deployment configurations

You have to update the IP address of the Elasticsearch and InfluxDB containers in config files.

Update the IP 127.0.0.1 to your IP address in deployments/fluentbit-config.yml and deployments/fluentbit-deploy.yml

Deploy Example Log Generator

kubectl apply -f deployments/deployment.yml

Create Namespace

kubectl create namespace fluentbit-test

Create RBAC for the Fluent Bit

kubectl create -f deployments/fluentbit-rbac.yml

Create a ConfigMap

kubectl create -f deployments/fluentbit-config.yml

Deploy Fluentbit

kubectl create -f deployments/fluentbit-deploy.yml