coralogix-fluentd

by joaquinito2051

Helm chartv1.0.3App 1.1.6Apache-2.0

Modificated version of official FluentD image with support of integration with Coralogix service.

About this chart

Coralogix Fluentd Helm chart for Kubernetes

It's a modificated version of official FluentD image with support of integration with Coralogix, multiprocessing and K8S.

Introduction

This chart bootstraps a FluentD Coralogix daemonset on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.6+ with Beta APIs enabled

Installing the Chart

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

$ helm install --name my-release \
  --set PRIVATE_KEY=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX \
  --set APP_NAME=your-app-name \
  --set SUB_SYSTEM=sub-system-name
    stable/fluentd-coralogix

The command deploys Fluentd-Coralogix 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 Coralogix chart and their default values.

ParameterDescriptionDefault
PRIVATE_KEYCoralogix Private KeyXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
APP_NAMECoralogix Application Name$kubernetes.namespace_name
SUB_SYSTEMCoralogix Subsystem name$kubernetes.container_name
coralogix.log_key_nameName of field in record which will be sent to CoralogixNone
coralogix.timestamp_key_nameField with will be used in Coralogix as timestamp of log recordNone
coralogix.is_jsonConvert data to JSONtrue
coralogix.force_compressionCompress datafalse
coralogix.debugEnable debug modefalse
coralogix.proxy.hostProxy hostNone
coralogix.proxy.portProxy portNone
coralogix.proxy.userProxy userNone
coralogix.proxy.passwordProxy passwordNone
container.image.repositoryImage repositorydocker.io/coralogixrepo/fluentd-coralogix-image
container.image.tagImage tag1.1.6
container.image.pullPolicyImage pull policyAlways
container.resources.limits.cpuCPU resource limits100m
container.resources.limits.memoryMemory resource limits400Mi
container.resources.requests.cpuCPU resource requests100m
container.resources.requests.memoryMemory resource requests400Mi
rbac.createIf true, create and use RBAC resourcesfalse
tolerationsList of node taints to tolerate (requires Kubernetes >= 1.6)node-role.kubernetes.io/master: NoSchedule
service.fluentd.enabledEnable FluentD forward servicetrue
service.fluentd.portFluentD port24224
service.http.enabledEnable HTTP collector servicetrue
service.http.portHTTP port9880
service.syslog.enabledEnable Syslog collector servicetrue
service.syslog.portSyslog port5140
service.graylog.enabledEnable Graylog collector servicetrue
service.graylog.portGraylog port12201
service.clusterIPClusterIP for service enabledNone

RBAC

By default the chart will not install the associated RBAC rolebinding, using beta annotations.

To determine if your cluster supports this running the following:

$ kubectl api-versions | grep rbac

You also need to have the following parameter on the api server. See the following document for how to enable RBAC.

--authorization-mode=RBAC

If the output contains "beta" or both "alpha" and "beta" you can enable RBAC.

Enable RBAC role/rolebinding creation

To enable the creation of RBAC resources, do the following:

$ helm install --name my-release stable/fluentd-coralogix --set rbac.create=true ...

Deploy coralogix-fluentd with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has coralogix-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 chartcoralogix-fluentd is pinned at v1.0.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