# Fluentd Helm chart for Kubernetes

Copy as Markdown[Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdocs-docusaurus.kinsta.page%2Fintegrations%2Fkubernetes%2Ffluentd-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%2Fdocs-docusaurus.kinsta.page%2Fintegrations%2Fkubernetes%2Ffluentd-helm-chart-for-kubernetes.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)

Here at Coralogix, we love [Kubernetes](http://kubernetes.io/) and we love making things simple. To help streamline your Kubernetes monitoring, we created this chart to bootstrap [our optimized Fluentd image](https://github.com/coralogix/telemetry-shippers/tree/master/logs/fluentd/k8s-helm/http) to create a DaemonSet on your [Kubernetes](http://kubernetes.io/) cluster using the [Helm](https://helm.sh/) Package Manager.

Our chart also supports metrics for Fluentd itself by default and is MultiArch.

Our Helm chart is open source and you are welcome to review and make suggestions for improvements in our [Integrations repository](https://github.com/coralogix/telemetry-shippers/blob/master/logs/fluentd/k8s-helm/http/README.md).

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

* `Kubernetes` 1.20+ with Beta APIs enabled.

* `Helm` 2.9+ Package Manager installed (For installation instructions please visit [Get Helm!](https://helm.sh/)).

**Kubernetes 1.25+**<br /><!-- -->podsecuritypolicy has been deprecated for this version up.<br /><!-- -->You can disable this by adding the following to your override file

```
podSecurityPolicy:

  create: false
```

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

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

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

## Create Secret Key[​](#create-secret-key "Direct link to Create Secret Key")

Your [Send-Your-Data API key](https://docs-docusaurus.kinsta.page/user-guides/account-management/api-keys/send-your-data-api-key/.md) 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 coralogix-keys \

        -n coralogix-logger \

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

## Add the Helm Chart Repo[​](#add-the-helm-chart-repo "Direct link to 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.yml File[​](#create-an-overrideyml-file "Direct link to Create An override.yml File")

This is where you can override settings like the HTTP endpoint to which we send logs (we added a table of endpoints at the bottom of this manual).

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

```
---

#override.yaml:

fluentd:

  configMapConfigs:

  - fluentd-prometheus-conf

  # - fluentd-systemd-conf

  env:

  - name: APP_NAME

    value: namespace_name

  - name: SUB_SYSTEM

    value: container_name

  - name: APP_NAME_SYSTEMD

    value: systemd

  - name: SUB_SYSTEM_SYSTEMD

    value: kubelet.service

  - name: ENDPOINT

    value: <put_your_coralogix_endpoint_here>

  - name: "FLUENTD_CONF"

    value: "../../etc/fluent/fluent.conf"

  - name: LOG_LEVEL

    value: error

  - name: K8S_NODE_NAME

    valueFrom:

      fieldRef:

        fieldPath: spec.nodeName
```

## Deploy the Chart[​](#deploy-the-chart "Direct link to Deploy the Chart")

```
helm upgrade fluentd-http coralogix-charts-virtual/fluentd-http \

     --install --namespace=coralogix-logger \

     -f override.yaml
```

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

```
helm uninstall fluentd-http \

     -n coralogix-logger
```

## Coralogix Endpoints[​](#coralogix-endpoints "Direct link to Coralogix Endpoints")

Choose the <!-- -->https\://ingress. endpoint that corresponds to your Coralogix [domain](https://docs-docusaurus.kinsta.page/user-guides/account-management/account-settings/coralogix-domain/.md) using the domain selector at the top of the page.

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

|                     |                                                                                                 |
| ------------------- | ----------------------------------------------------------------------------------------------- |
| Coralogix Endpoints | [Coralogix Endpoints](https://docs-docusaurus.kinsta.page/integrations/coralogix-endpoints/.md) |
