filebeat
A Helm chart to collect Kubernetes logs with filebeat
About this chart
Filebeat
filebeat is used to ship Kubernetes and host logs to multiple outputs.
Prerequisites
- Kubernetes 1.9+
Note
By default this chart only ships a single output to a file on the local system. Users should set config.output.file.enabled=false and configure their own outputs as documented
Installing the Chart
To install the chart with the release name my-release:
$ helm install --name my-release <helm-repo>/filebeat
$ helm install --name my-release stable/filebeat
Configuration
The following table lists the configurable parameters of the filebeat chart and their default values.
| Parameter | Description | Default |
|---|---|---|
image.repository | Docker image repo | docker.elastic.co/beats/filebeat-oss |
image.tag | Docker image tag | 6.7.0 |
image.pullPolicy | Docker image pull policy | IfNotPresent |
image.pullSecrets | Specify image pull secrets | nil |
config.filebeat.config.prospectors.path | Mounted filebeat-prospectors configmap | ${path.config}/prospectors.d/*.yml |
config.filebeat.config.prospectors.reload.enabled | Reload prospectors configs as they change | false |
config.filebeat.config.modules.path | ${path.config}/modules.d/*.yml | |
config.filebeat.config.modules.reload.enabled | Reload module configs as they change | false |
config.processors | - add_cloud_metadata | |
config.filebeat.prospectors | see values.yaml | |
config.output.file.path | "/usr/share/filebeat/data" | |
config.output.file.filename | filebeat | |
config.output.file.rotate_every_kb | 10000 | |
config.output.file.number_of_files | 5 | |
config.http.enabled | false | |
config.http.port | 5066 | |
overrideConfig | If overrideConfig is not empty, filebeat chart's default config won't be used at all. | {} |
data.hostPath | Path on the host to mount to /usr/share/filebeat/data in the container. | /var/lib/filebeat |
indexTemplateLoad | List of Elasticsearch hosts to load index template, when logstash output is used | [] |
command | Custom command (Docker Entrypoint) | [] |
args | Custom args (Docker Cmd) | [] |
plugins | List of beat plugins | [] |
extraVars | A list of additional environment variables | [] |
extraVolumes | Add additional volumes | [] |
extraVolumeMounts | Add additional mounts | [] |
extraInitContainers | Add additional initContainers | [] |
resources | {} | |
priorityClassName | priorityClassName | nil |
nodeSelector | {} | |
annotations | {} | |
tolerations | [] | |
affinity | {} | |
rbac.create | Specifies whether RBAC resources should be created | true |
serviceAccount.create | Specifies whether a ServiceAccount should be created | true |
serviceAccount.name | the name of the ServiceAccount to use | "" |
podSecurityPolicy.enabled | Should the PodSecurityPolicy be created. Depends on rbac.create being set to true. | false |
podSecurityPolicy.annotations | Annotations to be added to the created PodSecurityPolicy: | "" |
privileged | Specifies wheter to run as privileged | false |
Specify each parameter using the --set key=value[,key=value] argument to helm install.
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
Specify each parameter using the --set key=value[,key=value] argument to helm install.
$ helm install --name my-release -f values.yaml <helm-repo>/filebeat
Deploy filebeat with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has filebeat 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartfilebeat is pinned at v1.7.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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