fluentbit-operator

by KubeSphere

Helm chartv0.1.0App 0.9.0Verified publisher

A Helm chart for Kubernetes

About this chart

Fluent Bit Operator

Fluent Bit Operator facilitates the deployment of Fluent Bit and provides great flexibility in building a logging layer based on Fluent Bit. Learn more: https://github.com/fluent/fluentbit-operator

Introduction

This Helm chart installs Fluent Bit Operator in a Kubernetes cluster. Welcome to contribute to Helm Chart for Fluent Bit Operator.

Prerequisites

  • Kubernetes v1.16.13+
  • Helm v3.2.1+

Installing the Chart

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

$ helm install --name my-release  --create-namespace -n kubesphere-logging-system stable/fluentbit-operator

The command deploys Fluent Bit Operator on the Kubernetes cluster using the default configuration. The configuration section lists the parameters that can be configured during installation.

Uninstalling the Chart

Assuming your release is named as my-release, delete it using the command:

$ helm uninstall 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 Elasticsearch-Exporter chart and their default values.

ParameterDescriptionDefault
operator.imageThe image of Fluent Bit Operator containerkubesphere/fluentbit-operator
operator.tagThe tag of Fluent Bit Operator containerv0.9.0
operator.initcontainer.imageThe image of initial container.It is used to set Fluent Bit environment variablesdocker
operator.initcontainer.tagThe tag of initial container.19.03
fluentbit.imageThe image of Fluent Bit containerkubesphere/fluent-bit
fluentbit.tagThe tag of Fluent Bit containerv1.8.3
imagePullSecretsImage pull secrets[]
nameOverrideProvide a name in place of Fluent Bit Operator""
fullnameOverrideProvide a name to substitute for the full names of resources""
namespaceOverrideOverride the deployment namespace""
resources.fluentbit.resources.limits.cpuFluent bit Pod resource requests & limits500m
resources.fluentbit.resources.limits.memoryFluent bit Pod resource requests & limits200Mi
resources.fluentbit.resources.requests.cpuFluent bit Pod resource requests & limits10m
resources.fluentbit.resources.requests.memoryFluent bit Pod resource requests & limits25Mi
resources.operator.resources.limits.cpuFluent Bit Operator Pod resource requests & limits100m
resources.operator.resources.limits.memoryFluent Bit Operator Pod resource requests & limits30Mi
resources.operator.resources.requests.cpuFluent Bit Operator Pod resource requests & limits100m
resources.operator.resources.requests.memoryFluent Bit Operator Pod resource requests & limits20Mi
Kubernetesif true, it wll deploy log input/filter/output configurations to collect Kubernetes logs including container logs and kubelet logs.false
input.tail.memBufLimitSet a limit of memory that Tail plugin can use when appending data to the Engine5MB
containerRuntimeSet different containerRuntime depending on your container runtime( containerd , cri-o ,docker)docker
logPath.crioSet the fluentBit mount path when your container time is cri-o/var/log
output.es.enablesif true, logs will be output to the Elasticsearchfalse
output.es.hostthe host of the Elasticsearch<Elasticsearch url like elasticsearch-logging-data.kubesphere-logging-system.svc>
output.es.portthe port of the Elasticsearch9200
output.forward.enablesif true, logs will be output to the fluentdfalse
output.forward.hostthe host of the fluentd<fluentd url like fluentd.kubesphere-logging-system.svc>
output.forward.portthe port of the fluentd24224
output.kafka.enableif true, logs will be output to the kafkafalse
output.kafka.brokersthe brokers of the kafka<kafka broker list like xxx.xxx.xxx.xxx:9092,yyy.yyy.yyy.yyy:9092>

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

$ helm install --name my-release --create-namespace -n kubesphere-logging-system \
    --set key_1=value_1,key_2=value_2 \
    stable/fluentbit-operator

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

# example for staging
$ helm install --name my-release --create-namespace -n kubesphere-logging-system -f values.yaml stable/fluentbit-operator

Tip: You can use the default values.yaml

Deploy fluentbit-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has fluentbit-operator 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 chartfluentbit-operator is pinned at v0.1.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