diff --git a/charts/fluent-bit b/charts/fluent-bit new file mode 120000 index 0000000..cd73d77 --- /dev/null +++ b/charts/fluent-bit @@ -0,0 +1 @@ +../../helm-charts/charts/fluent-bit \ No newline at end of file diff --git a/charts/kubezero-istio/templates/istio-private-ingress.yaml b/charts/kubezero-istio/templates/istio-private-ingress.yaml index 7966539..bcb998c 100644 --- a/charts/kubezero-istio/templates/istio-private-ingress.yaml +++ b/charts/kubezero-istio/templates/istio-private-ingress.yaml @@ -45,11 +45,11 @@ spec: {{- end }} resources: limits: - cpu: 2000m + # cpu: 2000m memory: 1024Mi requests: cpu: 100m - memory: 128Mi + memory: 64Mi strategy: rollingUpdate: maxSurge: 100% @@ -115,11 +115,11 @@ spec: image: node-agent-k8s resources: limits: - #cpu: 2000m + cpu: 2000m memory: 1024Mi requests: cpu: 100m - memory: 64Mi + memory: 128Mi secretVolumes: - mountPath: /etc/istio/ingressgateway-certs name: ingressgateway-certs diff --git a/charts/kubezero-lib/templates/_helpers.tpl b/charts/kubezero-lib/templates/_helpers.tpl index f0de548..808f73b 100644 --- a/charts/kubezero-lib/templates/_helpers.tpl +++ b/charts/kubezero-lib/templates/_helpers.tpl @@ -2,7 +2,7 @@ Common set of labels */ -}} {{- define "kubezero-lib.labels" -}} -helm.sh/chart: {{ include "kubezero-lib.chart . }} +helm.sh/chart: {{ include "kubezero-lib.chart" . }} app.kubernetes.io/name: {{ include "kubezero-lib.name" . }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/part-of: kubezero diff --git a/charts/kubezero-logging/Chart.yaml b/charts/kubezero-logging/Chart.yaml index 0750821..71cdf36 100644 --- a/charts/kubezero-logging/Chart.yaml +++ b/charts/kubezero-logging/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: kubezero-logging description: KubeZero Umbrella Chart for complete EFK stack type: application -version: 0.2.0 +version: 0.3.1 appVersion: 1.2.1 home: https://kubezero.com icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png @@ -22,4 +22,9 @@ dependencies: version: 2.5.1 repository: https://kubernetes-charts.storage.googleapis.com/ condition: fluentd.enabled + - name: fluent-bit + version: 0.6.3 + repository: https://zero-down-time.github.io/kubezero/ + # repository: https://fluent.github.io/helm-charts + condition: fluent-bit.enabled kubeVersion: ">= 1.16.0" diff --git a/charts/kubezero-logging/values-fluentbit.yaml b/charts/kubezero-logging/values-fluentbit.yaml new file mode 100644 index 0000000..298b39a --- /dev/null +++ b/charts/kubezero-logging/values-fluentbit.yaml @@ -0,0 +1,8 @@ +fluent-bit: + enabled: true + + metrics: + enabled: true + + url: fluentd.example.com + diff --git a/charts/kubezero-logging/values.yaml b/charts/kubezero-logging/values.yaml index 1a537d4..6f34ef8 100644 --- a/charts/kubezero-logging/values.yaml +++ b/charts/kubezero-logging/values.yaml @@ -125,7 +125,7 @@ fluentd: id_key id remove_keys id - # This pipeline incl. eg. GeoIP + # KubeZero pipeline incl. GeoIP etc. pipeline fluentd host "#{ENV['OUTPUT_HOST']}" @@ -193,3 +193,109 @@ fluentd: # # # + + +fluent-bit: + enabled: true + test: + enabled: false + + config: + outputs: | + [OUTPUT] + Match * + Name forward + Host fluentd + Port 24224 + tls on + tls.verify off + Shared_Key cloudbender + + inputs: | + [INPUT] + Name tail + Path /var/log/containers/*.log + Parser cri + Tag kube.* + Mem_Buf_Limit 5MB + Skip_Long_Lines On + Refresh_Interval 10 + DB /var/log/flb_kube.db + DB.Sync Normal + + filters: | + [FILTER] + Name kubernetes + Match kube.* + Merge_Log On + Keep_Log Off + K8S-Logging.Parser On + K8S-Logging.Exclude On + + [FILTER] + Name lua + Match kube.* + script /fluent-bit/etc/functions.lua + call dedot + + customParsers: | + [PARSER] + # http://rubular.com/r/tjUt3Awgg4 + Name cri + Format regex + Regex ^(?