logstash
by KubeGems
Logstash is an open source, server-side data processing pipeline that ingests data from a multitude of sources simultaneously, transforms it, and then sends it to your favorite "stash".
About this chart
Logstash
Logstash is an open source, server-side data processing pipeline that ingests data from a multitude of sources simultaneously, transforms it, and then sends it to your favorite "stash".
TL;DR
$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/logstash
Introduction
This chart bootstraps a logstash deployment on a Kubernetes cluster using the Helm package manager.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.
Prerequisites
- Kubernetes 1.12+
- Helm 3.1.0
Installing the Chart
To install the chart with the release name my-release:
$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/logstash
These commands deploy logstash on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release statefulset:
$ helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release. Use the option --purge to delete all history too.
Parameters
The following tables lists the configurable parameters of the Logstash chart and their default values.
| Parameter | Description | Default |
|---|---|---|
global.imageRegistry | Global Docker image registry | nil |
global.imagePullSecrets | Global Docker registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
global.storageClass | Global storage class for dynamic provisioning | nil |
image.registry | Logstash image registry | docker.io |
image.repository | Logstash image name | bitnami/logstash |
image.tag | Logstash image tag | {TAG_NAME} |
image.pullPolicy | Logstash image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
image.debug | Specify if debug logs should be enabled | false |
kubeVersion | Force target Kubernetes version (using Helm capabilities if not set) | nil |
hostAliases | Add deployment host aliases | [] |
nameOverride | String to partially override logstash.fullname template with a string (will prepend the release name) | nil |
fullnameOverride | String to fully override logstash.fullname template with a string | nil |
clusterDomain | Default Kubernetes cluster domain | cluster.local |
configFileName | Logstash configuration file name. It must match the name of the configuration file mounted as a configmap. | logstash.conf |
enableMonitoringAPI | Whether to enable the Logstash Monitoring API or not Kubernetes cluster domain | true |
monitoringAPIPort | Logstash Monitoring API Port | 9600 |
extraEnvVars | Array containing extra env vars to configure Logstash | nil |
extraEnvVarsSecret | Kubernetes Secrets name | nil |
extraEnvVarsCM | Kubernetes Configmap name | nil |
input | Input Plugins configuration | Check values.yaml file |
filter | Filter Plugins configuration | nil |
output | Output Plugins configuration | Check values.yaml file |
existingConfiguration | Name of existing ConfigMap object with the Logstash configuration (input, filter, and output will be ignored). | nil |
enableMultiplePipelines | Allows user to use multiple pipelines | false |
containerPorts | Array containing the ports to open in the Logstash container | Check values.yaml file |
extraVolumes | Array to add extra volumes (evaluated as a template) | [] |
extraVolumeMounts | Array to add extra mounts (normally used with extraVolumes, evaluated as a template) | [] |
replicaCount | The number of Logstash replicas to deploy | 1 |
updateStrategy | Update strategy (RollingUpdate, or OnDelete) | RollingUpdate |
podManagementPolicy | Pod management policy | OrderedReady |
podAnnotations | Pod annotations | {} (The value is evaluated as a template) |
podAffinityPreset | Pod affinity preset. Ignored if affinity is set. Allowed values: soft or hard | "" |
podAntiAffinityPreset | Pod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hard | soft |
nodeAffinityPreset.type | Node affinity preset type. Ignored if affinity is set. Allowed values: soft or hard | "" |
nodeAffinityPreset.key | Node label key to match. Ignored if affinity is set. | "" |
nodeAffinityPreset.values | Node label values to match. Ignored if affinity is set. | [] |
affinity | Affinity for pod assignment | {} (evaluated as a template) |
nodeSelector | Node labels for pod assignment | {} (evaluated as a template) |
initContainers | Extra containers to run before logstash for initialization purposes like custom plugin install. | [] (evaluated as a template) |
tolerations | Tolerations for pod assignment | [] (evaluated as a template) |
priorityClassName | Controller priorityClassName | nil |
securityContext.enabled | Enable security context for Logstash | true |
securityContext.fsGroup | Group ID for the Logstash filesystem | 1001 |
securityContext.runAsUser | User ID for the Logstash container | 1001 |
resources.limits | The resources limits for the Logstash container | {} |
resources.requests | The requested resources for the Logstash container | {} |
livenessProbe | Liveness probe configuration for Logstash | Check values.yaml file |
lifecycle | POD Lifecycle hook(s) for Logstash | Check values.yaml file |
readinessProbe | Readiness probe configuration for Logstash | Check values.yaml file |
service.type | Kubernetes service type (ClusterIP, NodePort, or LoadBalancer) | ClusterIP |
service.ports | Array containing the Logstash service ports | Check values.yaml file |
service.annotations | Annotations for Logstash service | {} |
service.loadBalancerIP | loadBalancerIP if service type is |
Deploy logstash with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has logstash 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 chartlogstash is pinned at v3.5.5 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