fluentd

by joaquinito2051

Helm chartv1.9.0App v2.4.0

A Fluentd Elasticsearch Helm chart for Kubernetes.

About this chart

fluentd

Fluentd collects events from various data sources and writes them to files, RDBMS, NoSQL, IaaS, SaaS, Hadoop and so on. Fluentd helps you unify your logging infrastructure (Learn more about the Unified Logging Layer).

TL;DR;

$ helm install <helm-repo>/fluentd

$ helm install stable/fluentd

Introduction

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

Installing the Chart

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

$ helm install <helm-repo>/fluentd --name my-release

$ helm install stable/fluentd --name my-release The command deploys fluentd on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters of the fluentd chart and their default values.

ParameterDescriptionDefault
affinitynode/pod affinities{}
configMapsFluentd configurationSee values.yaml
output.hostoutput hostelasticsearch-client.default.svc.cluster.local
output.portoutput port9200
output.schemeoutput porthttp
output.sslVersionoutput ssl versionTLSv1
output.buffer_chunk_limitoutput buffer chunk limit2M
output.buffer_queue_limitoutput buffer queue limit8
image.pullPolicyImage pull policyIfNotPresent
image.repositoryImage repositorygcr.io/google-containers/fluentd-elasticsearch
image.tagImage tagv2.4.0
imagePullSecretsSpecify image pull secretsnil (does not add image pull secrets to deployed pods)
extraEnvVarsAdds additional environment variables to the deployment (in yaml syntax){} See values.yaml
ingress.enabledenable ingressfalse
ingress.labelslist of labels for the ingress ruleSee values.yaml
ingress.annotationslist of annotations for the ingress rulekubernetes.io/ingress.class: nginx See values.yaml
ingress.hostshost definition for ingressSee values.yaml
ingress.tlstls rules for ingressSee values.yaml
nodeSelectornode labels for pod assignment{}
replicaCountdesired number of pods1 ???
resourcespod resource requests & limits{}
priorityClassNamepriorityClassNamenil
service.portsport definition for the serviceSee values.yaml
service.typetype of serviceClusterIP
tolerationsList of node taints to tolerate[]
persistence.enabledEnable buffer persistencefalse
persistence.accessModeAccess mode for buffer persistenceReadWriteOnce
persistence.sizeVolume size for buffer persistence10Gi

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
$ helm install <helm-repo>/fluentd --name my-release \
  --set=image.tag=v0.0.2,resources.limits.cpu=200m

$ helm install stable/fluentd --name my-release \

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

$ helm install <helm-repo>/fluentd --name my-release -f values.yaml

$ helm install stable/fluentd --name my-release -f values.yaml

Tip: You can use the default values.yaml

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 v1.9.0 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