fluentd

by joaquinito2051

Helm chartv4.1.3App 0.12.43

Fluentd for multiple endpoints

About this chart

Fluentd

Deploys fluentd daemonset with defaults for various backends. Note that you need to specifically choose to enable Elasticsearch or Papertrail plugins via elasticsearch.enabled or papertrail.enabled. See options below for details.

Backend images

Switching backends requires using a matching image as well as some backend-specific options.

Elasticsearch

ParameterDefault
image.repositoryfluent/fluentd-kubernetes-daemonset
image.tagv1.4.2-debian-elasticsearch-1.1
elasticsearch.enabledfalse
elasticsearch.hostinstance-name.region.es.amazonaws.com
elasticsearch.port443
elasticsearch.schemehttps
elasticsearch.chunk_limit_size5m
elasticsearch.chunk_limit_records100
elasticsearch.overflow_actionthrow_exception
elasticsearch.retry_timeout20s
elasticsearch.flush_interval5s
elasticsearch.flush_thread_count4

Papertrail

ParameterDefault
image.repositoryfluent/fluentd-kubernetes-daemonset
image.tagv1.4.2-debian-papertrail-1.1
papertrail.enabledfalse
papertrail.hostlogs3.papertrailapp.com
papertrail.port12785
papertrail.flush_thread_count4

Other Values

ParameterDescriptionDefault
cluster_nameRequired Name of the kubernetes_cluster""
verify_sslEnable/disable TLS validation of Kubernetes APItrue
image.pullPolicyPull policyAlways
resourcesResource requests/limits{limits: {cpu: 100m, memory: 500Mi}, requests: {cpu: 100m, memory: 500Mi}
rbac.createCreate RBAC resourcestrue
serviceAccount.createCreate a service accounttrue
serviceAccount.nameCreate a service account${fluentd.fullname}
annotationsMisc annotations{}
tolerationsMisc tolerations[{key: node-role.kubernetes.io/master, operator: Exists, effect: NoSchedule}]
log_levelLog levelerror
additional_filters_and_sourcesCustom additional fluentd configuration""
updateStrategyDaemonSet updateStrategy{type: RollingUpdate, rollingUpdate: {maxUnavailable: 10}}
pluginExtraArgs[]Extra arguments to be added to the container

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 v4.1.3 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