Our next-gen architecture is built to help you make sense of your ever-growing data Watch a 4-min demo video!

Back to All Integrations

Fluent Bit Helm Chart for Kubernetes Fluent Bit Helm Chart for Kubernetes

Last Updated: Nov. 21, 2022

To help streamline your Kubernetes monitoring, we created this multi-arch chart to effortlessly create a DaemonSet on your Kubernetes cluster using the Helm Package Manager.

Our Helm chart is open source and you are welcome to review and make suggestions for improvements
here.

Prerequisites

  • Kubernetes 1.20+ with Beta APIs enabled.
  • Helm 2.9+ Package Manager installed (For installation instructions please visit Get Helm!).
  • Your Coralogix Send Your Data key. You can find your key in the Coralogix UI under Data Flow –> API Keys.
  • Coralogix Domain. You can find your Domain here.

Installation

Create a Namespace for the daemonset (in our example we will use: coralogix-logger):

kubectl create namespace coralogix-logger

Create Secret Key

Your secret key can be found in the Coralogix UI in the top of the screen under Data Flow –> API Keys –> Send Your Data

kubectl create secret generic integrations-privatekey \
        -n coralogix-logger \
        --from-literal=PRIVATE_KEY=<send-your-logs-private-key>

Add the Helm Chart Repo

(And run an update to fetch it)

helm repo add coralogix-charts-virtual https://cgx.jfrog.io/artifactory/coralogix-charts-virtual &&
helm repo update

Create An override.yaml File

This is where you can override settings like the HTTP endpoint to which we send logs (in our example we will use ‘eu2.coralogix.com‘ domain and prepend the ‘api.’):

You can also change the dynamic field from which we extract the application and subsystem name.

---
# fluentbit-override.yaml:
dynamic_metadata:
  app_name: kubernetes.namespace_name
  sub_system: kubernetes.container_name
fluent-bit:
  endpoint: api.eu2.coralogix.com
  logLevel: error

Or use a static value to overwrite the application name and subsystem name.

---
# fluentbit-override.yaml:
static_metadata:
  app_name: MyApplication
  sub_system: MySubsystem
fluent-bit:
  endpoint: api.eu2.coralogix.com
  logLevel: error

Deploy the Chart

helm upgrade fluent-bit-http coralogix-charts-virtual/fluent-bit-http \
  --install \
  --namespace=coralogix-logger \
  -f fluentbit-override.yaml

Remove the Daemonset

helm uninstall fluent-bit-http \
     -n coralogix-logger

Need help?

Our world-class customer success team is available 24/7 to walk you through your setup and answer any questions that may come up.

Feel free to reach out to us via our in-app chat or by sending us an email to [email protected].

On this page