Skip to content

Commit

Permalink
Merge pull request #488 from Brightside56/Fluent-bit-update
Browse files Browse the repository at this point in the history
Fluent-bit upgrade to v2.0.6
  • Loading branch information
benjaminhuo committed Dec 10, 2022
2 parents d41774f + 49c4335 commit 213cfe2
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-fb-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- "pkg/filenotify/**"

env:
FB_IMG: 'kubesphere/fluent-bit:v1.9.9'
FB_IMG: 'kubesphere/fluent-bit:v2.0.6'

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VERSION?=$(shell cat VERSION | tr -d " \t\n\r")
# Image URL to use all building/pushing image targets
FB_IMG ?= kubesphere/fluent-bit:v1.9.9
FB_IMG ?= kubesphere/fluent-bit:v2.0.6
FD_IMG ?= kubesphere/fluentd:v1.14.6
FO_IMG ?= kubesphere/fluent-operator:$(VERSION)
FD_IMG_BASE ?= kubesphere/fluentd:v1.14.6-arm64-base
Expand Down
19 changes: 7 additions & 12 deletions charts/fluent-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ operator:
# - name: "image-pull-secret"
# Reference one more key-value pairs of labels that should be attached to fluent-operator
labels: {}
# myExampleLabel: someValue
# myExampleLabel: someValue
logPath:
crio: /var/log
containerd: /var/log

fluentbit:
image:
repository: "kubesphere/fluent-bit"
tag: "v1.9.9"
tag: "v2.0.6"
# fluentbit resources. If you do want to specify resources, adjust them as necessary
#You can adjust it based on the log volume.
resources:
Expand Down Expand Up @@ -65,7 +65,7 @@ fluentbit:
# Pod volumes to mount into the container's filesystem.
volumesMounts: []

# Remove the above empty volumes and volumesMounts, and then set volumes and volumesMounts as below if you want to collect node exporter metrics
# Remove the above empty volumes and volumesMounts, and then set volumes and volumesMounts as below if you want to collect node exporter metrics
# volumes:
# - name: hostProc
# hostPath:
Expand All @@ -76,11 +76,11 @@ fluentbit:
# volumesMounts:
# - mountPath: /host/sys
# mountPropagation: HostToContainer
# name: hostSys
# name: hostSys
# readOnly: true
# - mountPath: /host/proc
# mountPropagation: HostToContainer
# name: hostProc
# name: hostProc
# readOnly: true

#Set a limit of memory that Tail plugin can use when appending data to the Engine.
Expand All @@ -91,7 +91,7 @@ fluentbit:
input:
tail:
memBufLimit: 5MB
# uncomment below nodeExporterMetrics section if you want to collect node exporter metrics
# uncomment below nodeExporterMetrics section if you want to collect node exporter metrics
# nodeExporterMetrics:
# tag: node_metrics
# scrapeInterval: 15s
Expand Down Expand Up @@ -128,7 +128,7 @@ fluentbit:
enable: false
brokers: "<kafka broker list like xxx.xxx.xxx.xxx:9092,yyy.yyy.yyy.yyy:9092>"
topics: ks-log

#Configure the default filters in FluentBit.
filter:
kubernetes:
Expand Down Expand Up @@ -184,8 +184,3 @@ fluentd:
nameOverride: ""
fullnameOverride: ""
namespaceOverride: ""





2 changes: 1 addition & 1 deletion cmd/fluent-watcher/fluentbit/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WORKDIR /code
RUN echo $(ls -al /code)
RUN CGO_ENABLED=0 go build -i -ldflags '-w -s' -o /fluent-bit/fluent-bit /code/cmd/fluent-watcher/fluentbit/main.go

FROM fluent/fluent-bit:1.9.9
FROM fluent/fluent-bit:2.0.6
LABEL Description="Fluent Bit docker image" Vendor="Fluent" Version="1.0"

COPY conf/fluent-bit.conf conf/parsers.conf /fluent-bit/etc/
Expand Down
6 changes: 3 additions & 3 deletions manifests/kubeedge/fluentbit-fluentbit-edge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
labels:
app.kubernetes.io/name: fluent-bit
spec:
image: kubesphere/fluent-bit:v1.9.9
image: kubesphere/fluent-bit:v2.0.6
positionDB:
hostPath:
path: /var/lib/fluent-bit/
Expand Down Expand Up @@ -38,9 +38,9 @@ spec:
volumesMounts:
- mountPath: /host/sys
mountPropagation: HostToContainer
name: host-sys
name: host-sys
readOnly: true
- mountPath: /host/proc
mountPropagation: HostToContainer
name: host-proc
name: host-proc
readOnly: true
2 changes: 1 addition & 1 deletion manifests/logging-stack/fluentbit-fluentBit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
labels:
app.kubernetes.io/name: fluent-bit
spec:
image: kubesphere/fluent-bit:v1.9.9
image: kubesphere/fluent-bit:v2.0.6
positionDB:
hostPath:
path: /var/lib/fluent-bit/
Expand Down
2 changes: 1 addition & 1 deletion manifests/quick-start/fluentbit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
labels:
app.kubernetes.io/name: fluent-bit
spec:
image: kubesphere/fluent-bit:v1.9.9
image: kubesphere/fluent-bit:v2.0.6
fluentBitConfigName: fluent-bit-config

---
Expand Down
2 changes: 1 addition & 1 deletion manifests/regex-parser/fluentbit-fluentBit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ metadata:
labels:
app.kubernetes.io/name: fluent-bit
spec:
image: kubesphere/fluent-bit:v1.9.9
image: kubesphere/fluent-bit:v2.0.6
fluentBitConfigName: fluent-bit-config

0 comments on commit 213cfe2

Please sign in to comment.