Add Fluent Bit configuration and update probe intervals in Helm chart

This commit is contained in:
Simon Larsen
2024-12-04 19:23:59 +00:00
parent e947d21060
commit e0f5d8f1f2
5 changed files with 47 additions and 3 deletions

8
FluentBit/Dockerfile.tpl Normal file
View File

@@ -0,0 +1,8 @@
FROM cr.fluentbit.io/fluent/fluent-bit
# This container will only run in dev env, so this is ok.
USER root
EXPOSE 24224
EXPOSE 24284
EXPOSE 2020

12
FluentBit/fluent-bit.yaml Normal file
View File

@@ -0,0 +1,12 @@
service:
flush: 1
log_level: info
http_server: true
http_listen: 0.0.0.0
http_port: 2020
pipeline:
inputs:
- name: random
outputs:
- name: stdout
match: '*'

View File

@@ -388,17 +388,17 @@ notifications:
startupProbe: # Startup probe configuration
enabled: true
periodSeconds: 30
periodSeconds: 60
failureThreshold: 18
livenessProbe: # Liveness probe configuration
enabled: true
periodSeconds: 30
periodSeconds: 60
timeoutSeconds: 120
initialDelaySeconds: 10
readinessProbe: # Readiness probe configuration
enabled: true
periodSeconds: 30
periodSeconds: 60
initialDelaySeconds: 10
timeoutSeconds: 120

View File

@@ -408,6 +408,15 @@ services:
options:
max-size: "1000m"
fluent-bit:
networks:
- oneuptime
restart: always
logging:
driver: "local"
options:
max-size: "1000m"
isolated-vm:
networks:
- oneuptime

View File

@@ -425,6 +425,21 @@ services:
context: ./Fluentd
dockerfile: ./Dockerfile
fluent-bit:
ports:
- 24225:24224
- 24285:24284
- 2020:2020
extends:
file: ./docker-compose.base.yml
service: fluent-bit
volumes:
- ./FluentBit/fluent-bit.yaml:/fluent-bit/etc/fluent-bit.yaml
build:
network: host
context: .
dockerfile: ./FluentBit/Dockerfile
ingress:
build:
network: host