fluentd

by joaquinito2051

Helm chartv5.5.10App 1.15.3

Fluentd collects events from various data sources and writes them to files, RDBMS, NoSQL, IaaS, SaaS, Hadoop and so on.

About this chart

Fluentd packaged by Bitnami

Fluentd collects events from various data sources and writes them to files, RDBMS, NoSQL, IaaS, SaaS, Hadoop and so on.

Overview of Fluentd

Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

Azure-ready Charts with Containers from marketplace.azurecr.io

This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.

$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo

TL;DR

$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/fluentd

Introduction

This chart bootstraps a Fluentd deployment on a Kubernetes cluster using the Helm package manager.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+
  • PV provisioner support in the underlying infrastructure

Note: Please, note that the forwarder runs the container as root by default setting the forwarder.securityContext.runAsUser to 0 (root user)

Installing the Chart

To install the chart with the release name my-release:

$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/fluentd

These commands deploy Fluentd on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release resources:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release. Use the option --purge to delete all history too.

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
kubeVersionForce target Kubernetes version (using Helm capabilities if not set)""
nameOverrideString to partially override common.names.fullname template (will maintain the release name)""
fullnameOverrideString to fully override common.names.fullname template""
commonAnnotationsAnnotations to add to all deployed objects{}
commonLabelsLabels to add to all deployed objects{}
clusterDomainCluster Domaincluster.local
extraDeployArray of extra objects to deploy with the release[]
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the deployment["sleep"]
diagnosticMode.argsArgs to override all containers in the deployment["infinity"]

Fluentd parameters

NameDescriptionValue
image.registryFluentd image registrydocker.io
image.repositoryFluentd image repositorybitnami/fluentd
image.tagFluentd image tag (immutable tags are recommended)1.15.3-debian-11-r1
image.pullPolicyFluentd image pull policyIfNotPresent
image.pullSecretsFluentd image pull secrets[]
image.debugEnable image debug modefalse
forwarder.enabledEnable forwarder daemonsettrue
forwarder.image.registryFluentd forwarder image registry override""
forwarder.image.repositoryFluentd forwarder image repository override""
forwarder.image.tagFluentd forwarder image tag override (immutable tags are recommended)""
forwarder.daemonUserForwarder daemon user and group (set to root by default because it reads from host paths)root
forwarder.daemonGroupFluentd forwarder daemon system grouproot
forwarder.hostAliasesAdd deployment host aliases[]
forwarder.podSecurityContext.enabledEnable security context for forwarder podstrue
forwarder.podSecurityContext.runAsUserUser ID for forwarder's containers0
forwarder.podSecurityContext.runAsGroupGroup ID for forwarder's containers0
forwarder.podSecurityContext.fsGroupGroup ID for forwarder's containers filesystem0
forwarder.containerSecurityContext.enabledEnable security context for the forwarder containertrue
forwarder.containerSecurityContext.privilegedRun as privilegedfalse
forwarder.containerSecurityContext.allowPrivilegeEscalationAllow Privilege Escalationfalse
forwarder.containerSecurityContext.readOnlyRootFilesystemRequire the use of a read only root file systemfalse
forwarder.containerSecurityContext.capabilities.dropDrop capabilities for the securityContext[]
forwarder.hostNetworkEnable use of host networkfalse
forwarder.dnsPolicyPod-specific DNS policy""
forwarder.terminationGracePeriodSecondsDuration in seconds the pod needs to terminate gracefully30
forwarder.configFileName of the config file that will be used by Fluentd at launch under the /opt/bitnami/fluentd/conf directoryfluentd.conf
forwarder.configMapName of the config map that contains the Fluentd configuration files""
forwarder.configMapFilesFiles to be added to be config map. Ignored if forwarder.configMap is set{}
forwarder.extraArgsExtra arguments for the Fluentd command line""
forwarder.extraEnvVarsExtra environment variables to pass to the container[]
forwarder.extraEnvVarsCMName of existing ConfigMap containing extra env

Deploy fluentd with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has fluentd on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartfluentd is pinned at v5.5.10 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply