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 --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
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
kubectl apply -f deployments/deployment.yml
kubectl create namespace fluentbit-test
kubectl create -f deployments/fluentbit-rbac.yml
kubectl create -f deployments/fluentbit-config.yml
kubectl create -f deployments/fluentbit-deploy.yml