From 77a7ba2ed6970c7db483f691da64175dd9c059cd Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Tue, 8 Dec 2020 07:05:25 -0800 Subject: [PATCH] Integrare fluent-bit into logging to allow better config --- charts/kubezero-logging/Chart.yaml | 8 +- charts/kubezero-logging/README.md | 20 +- .../charts/fluent-bit/.helmignore | 23 +++ .../charts/fluent-bit/Chart.yaml | 20 ++ .../charts/fluent-bit/README.md | 23 +++ .../fluent-bit/conf/custom_parsers.conf | 6 + .../charts/fluent-bit/conf/fluent-bit.conf | 72 ++++++++ .../charts/fluent-bit/conf/functions.lua | 28 +++ .../charts/fluent-bit/templates/NOTES.txt | 5 + .../charts/fluent-bit/templates/_helpers.tpl | 63 +++++++ .../charts/fluent-bit/templates/_pod.tpl | 103 +++++++++++ .../fluent-bit/templates/clusterrole.yaml | 28 +++ .../templates/clusterrolebinding.yaml | 16 ++ .../fluent-bit/templates/configmap.yaml | 15 ++ .../fluent-bit/templates/daemonset.yaml | 30 +++ .../fluent-bit/templates/deployment.yaml | 31 ++++ .../charts/fluent-bit/templates/psp.yaml | 38 ++++ .../charts/fluent-bit/templates/service.yaml | 30 +++ .../fluent-bit/templates/serviceaccount.yaml | 12 ++ .../fluent-bit/templates/servicemonitor.yaml | 30 +++ .../templates/tests/test-connection.yaml | 17 ++ .../charts/fluent-bit/values.yaml | 171 ++++++++++++++++++ charts/kubezero-logging/values.yaml | 108 ++--------- 23 files changed, 788 insertions(+), 109 deletions(-) create mode 100644 charts/kubezero-logging/charts/fluent-bit/.helmignore create mode 100644 charts/kubezero-logging/charts/fluent-bit/Chart.yaml create mode 100644 charts/kubezero-logging/charts/fluent-bit/README.md create mode 100644 charts/kubezero-logging/charts/fluent-bit/conf/custom_parsers.conf create mode 100644 charts/kubezero-logging/charts/fluent-bit/conf/fluent-bit.conf create mode 100644 charts/kubezero-logging/charts/fluent-bit/conf/functions.lua create mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/NOTES.txt create mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/_helpers.tpl create mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/_pod.tpl create mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/clusterrole.yaml create mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/clusterrolebinding.yaml create mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/configmap.yaml create mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/daemonset.yaml create mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/deployment.yaml create mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/psp.yaml create mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/service.yaml create mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/serviceaccount.yaml create mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/servicemonitor.yaml create mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/tests/test-connection.yaml create mode 100644 charts/kubezero-logging/charts/fluent-bit/values.yaml diff --git a/charts/kubezero-logging/Chart.yaml b/charts/kubezero-logging/Chart.yaml index c6fc86c0..1c0c77e1 100644 --- a/charts/kubezero-logging/Chart.yaml +++ b/charts/kubezero-logging/Chart.yaml @@ -26,9 +26,9 @@ dependencies: version: 2.5.1 repository: https://kubernetes-charts.storage.googleapis.com/ condition: fluentd.enabled - - name: fluent-bit - version: 0.7.10 - repository: https://zero-down-time.github.io/kubezero/ +# - name: fluent-bit +# version: 0.7.10 +# repository: https://zero-down-time.github.io/kubezero/ # repository: https://fluent.github.io/helm-charts - condition: fluent-bit.enabled +# condition: fluent-bit.enabled kubeVersion: ">= 1.16.0" diff --git a/charts/kubezero-logging/README.md b/charts/kubezero-logging/README.md index 10ab547e..9178c0a1 100644 --- a/charts/kubezero-logging/README.md +++ b/charts/kubezero-logging/README.md @@ -20,7 +20,6 @@ Kubernetes: `>= 1.16.0` |------------|------|---------| | https://helm.elastic.co | eck-operator | 1.3.0 | | https://kubernetes-charts.storage.googleapis.com/ | fluentd | 2.5.1 | -| https://zero-down-time.github.io/kubezero/ | fluent-bit | 0.7.10 | | https://zero-down-time.github.io/kubezero/ | kubezero-lib | >= 0.1.3 | ## Changes from upstream @@ -57,7 +56,8 @@ Kubernetes: `>= 1.16.0` | Key | Type | Default | Description | |-----|------|---------|-------------| -| eck-operator.enabled | bool | `true` | | +| eck-operator.enabled | bool | `false` | | +| eck-operator.installCRDs | bool | `false` | | | eck-operator.nodeSelector."node-role.kubernetes.io/master" | string | `""` | | | eck-operator.tolerations[0].effect | string | `"NoSchedule"` | | | eck-operator.tolerations[0].key | string | `"node-role.kubernetes.io/master"` | | @@ -66,12 +66,14 @@ Kubernetes: `>= 1.16.0` | es.prometheus | bool | `false` | | | es.s3Snapshot.enabled | bool | `false` | | | es.s3Snapshot.iamrole | string | `""` | | -| fluent-bit.config.customParsers | string | `"[PARSER]\n Name cri-log\n Format regex\n Regex ^(?