# Fluent Bit Helm chart for Kubernetes

Copy as Markdown[Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fcoralogix.com%2Fdocs%2Fintegrations%2Fkubernetes%2Ffluent-bit-helm-chart-for-kubernetes.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fcoralogix.com%2Fdocs%2Fintegrations%2Fkubernetes%2Ffluent-bit-helm-chart-for-kubernetes.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)

Note

The Fluent Bit Coralogix Helm chart is no longer supported. We recommend using the official [Fluent Bit Helm chart](https://coralogix.com/docs/docs/integrations/kubernetes/fluent-bit-helm-chart-migration/.md) instead.

Use our multi-arch [Helm chart](https://github.com/coralogix/telemetry-shippers/blob/master/logs/fluent-bit/k8s-helm/http/README.md) to streamline your Kubernetes monitoring by creating a DaemonSet on your [Kubernetes](http://kubernetes.io/) cluster using the [Helm](https://helm.sh/) package manager.

## Prerequisites[​](#prerequisites "Direct link to Prerequisites")

* Kubernetes 1.20+ with Beta APIs enabled

* Helm 2.9+ package manager [installed](https://helm.sh/)

## Installation[​](#installation "Direct link to Installation")

**STEP 1**. Create a namespace for the DaemonSet. The following example adopts the namespace **coralogix-logger**.

```
kubectl create namespace coralogix-logger
```

**STEP 2**. Create a secret key using your Coralogix [Send-Your-Data API key](https://coralogix.com/docs/docs/user-guides/account-management/api-keys/send-your-data-api-key/.md).

```
kubectl create secret generic coralogix-keys \

        -n coralogix-logger \

        --from-literal=PRIVATE_KEY=<Send-Your-Data API Key>
```

**STEP 3**. 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
```

**STEP 4**. Create an `override.yaml` to override particular settings.

* `endpoint`: Input the **[OpenTelemetry endpoint](https://coralogix.com/docs/docs/integrations/coralogix-endpoints/.md)** associated with your Coralogix domain.

* `dynamic_metadata`: You may change the dynamic field from which we extract the [application and subsystem name](https://coralogix.com/docs/docs/user-guides/account-management/account-settings/application-and-subsystem-names/.md) or a static value to overwrite these names.

```
---

# fluentbit-override.yaml:

dynamic_metadata:

  app_name: kubernetes.namespace_name

  sub_system: kubernetes.container_name

fluent-bit:

  endpoint: ingress.eu2.coralogix.com:443

  logLevel: error
```

```
---

# fluentbit-override.yaml:

static_metadata:

  app_name: MyApplication

  sub_system: MySubsystem

fluent-bit:

  endpoint: ingress.eu2.coralogix.com:443

  logLevel: error
```

* If a dynamic variable includes special characters, it **must** be declared in a different notation, such as the following. Failure to do so will result in LUA exceptions and failure to process properly.

```
  app_name: kubernetes.labels["k8s-app"]

  app_name: kubernetes.labels["app.kubernetes.io/name"]
```

**STEP 5**. Deploy the Helm Chart.

```
helm upgrade fluent-bit-http coralogix-charts-virtual/fluent-bit-http \

  --install \

  --namespace=coralogix-logger \

  -f fluentbit-override.yaml
```

## Remove the Daemonset[​](#remove-the-daemonset "Direct link to Remove the Daemonset")

**STEP 6**. Remove the DaemonSet.

```
helm uninstall fluent-bit-http \

     -n coralogix-logger
```

**Notes**:

* `podsecuritypolicy` has been deprecated for **Kubernetes v1.25+**.

* Disable this by adding the following to your override file:

```
podSecurityPolicy:

  create: false
```

## Additional Resources[​](#additional-resources "Direct link to Additional Resources")

Review and make suggestions for improvement for our Helm chart in our [Integrations Repository](https://github.com/coralogix/telemetry-shippers/blob/master/logs/fluent-bit/k8s-helm/http/README.md).
