fluentd

by genofire

Helm chartv0.4.0App 0.4.0

Provides easy Fluentd log-shipper setup

About this chart

Fluentd

Fluentd is a CNCF graduated project that provides the capability of log shipping as well as parsing. It can ship the logs to multiple destinations like Elasticsearch, Kafka, S3, etc. This helm chart needs Logging Operator inside Kubernetes cluster. The fluentd definition can be modified or changed by values.yaml.

$ helm repo add ot-helm https://ot-container-kit.github.io/helm-charts/
$ helm install <my-release> ot-helm/kibana --namespace <namespace>

Fluentd setup can be upgraded by using helm upgrade command:-

$ helm upgrade <my-release> ot-helm/kibana --install --namespace <namespace>

For uninstalling the chart:-

$ helm delete <my-release> --namespace <namespace>

Pre-Requisities

  • Kubernetes => 1.15
  • Helm => 3.X
  • Logging Operator => 0.3.0

Parameters

NameValuesDescription
elasticSearchHostelasticsearch-masterHostname or URL of the elasticsearch server
indexNameStrategynamespace_nameStrategy for creating indexes like:- namespace_name or pod_name
resources{}Resources for fluentd daemonset pods
nodeSelectors{}Nodeselectors map key-values for fluentd daemonset pods
affinity{}Affinity and anit-affinity for fluentd daemonset pods
tolerations{}Tolerations and taints for fluentd daemonset pods
customConfiguration{}Custom configuration parameters for fluentd
additionalConfiguration{}Additional configuration parameters for fluentd
esSecurity.enabledtrueTo enabled the xpack security of fluentd
esSecurity.elasticSearchPasswordelasticsearch-passwordCredentials for elasticsearch authentication

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 v0.4.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