Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
chore: updated fluent-bit chart
Browse files Browse the repository at this point in the history
- with new chart version new fluent-bit 1.5.2 is used
- added /proc/uptime and /dev/kmsg volumes (for later usage, more
changes needed)
- added hostPath for /var/log/kubernetes/audit to get rid of non
control-plane nodes error messages from fluent-bit
  • Loading branch information
sebbrandt87 committed Jul 27, 2020
1 parent a3e5557 commit 7a5bc3b
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions addons/fluentbit/1.5.x/fluentbit-2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
kubeaddons.mesosphere.io/name: fluentbit
annotations:
catalog.kubeaddons.mesosphere.io/addon-revision: "1.5.1-1"
appversion.kubeaddons.mesosphere.io/fluentbit: "1.5.1"
catalog.kubeaddons.mesosphere.io/addon-revision: "1.5.2-1"
appversion.kubeaddons.mesosphere.io/fluentbit: "1.5.2"
values.chart.helm.kubeaddons.mesosphere.io/fluentbit: "https://raw.githubusercontent.com/fluent/helm-charts/6cba78c/charts/fluent-bit/values.yaml"
spec:
kubernetes:
Expand All @@ -32,10 +32,8 @@ spec:
chartReference:
chart: fluent-bit
repo: https://fluent.github.io/helm-charts
version: 0.6.0
version: 0.6.1
values: |
image:
tag: 1.5.1
service:
annotations:
prometheus.io/path: "/api/v1/metrics/prometheus"
Expand All @@ -60,6 +58,8 @@ spec:
fsGroup: 2000
securityContext:
capabilities:
add:
- SYS_ADMIN
drop:
- ALL
readOnlyRootFilesystem: true
Expand All @@ -69,9 +69,29 @@ spec:
extraVolumes:
- name: tail-db
emptyDir: {}
# we create this to get rid of error messages that would appear on non control-plane nodes
- name: kubernetes-audit
hostPath:
path: /var/log/kubernetes/audit
type: DirectoryOrCreate
# needed for kmsg input plugin
- name: uptime
hostPath:
path: /proc/uptime
type: File
- name: kmsg
hostPath:
path: /dev/kmsg
type: CharDevice
extraVolumeMounts:
- name: tail-db
mountPath: /tail-db
- name: kubernetes-audit
mountPath: /var/log/kubernetes/audit
- name: uptime
mountPath: /proc/uptime
- name: kmsg
mountPath: /dev/kmsg
config:
## https://docs.fluentbit.io/manual/service
service: |
Expand Down Expand Up @@ -110,6 +130,7 @@ spec:
Skip_Long_Lines On
[INPUT]
Name systemd
DB /tail-db/journal.db
Tag host.*
Max_Entries 1000
Read_From_Tail On
Expand Down

0 comments on commit 7a5bc3b

Please sign in to comment.