logstash

by KubeGems

Helm chartv3.5.5App 7.13.2

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.

ParameterDescriptionDefault
global.imageRegistryGlobal Docker image registrynil
global.imagePullSecretsGlobal Docker registry secret names as an array[] (does not add image pull secrets to deployed pods)
global.storageClassGlobal storage class for dynamic provisioningnil
image.registryLogstash image registrydocker.io
image.repositoryLogstash image namebitnami/logstash
image.tagLogstash image tag{TAG_NAME}
image.pullPolicyLogstash image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[] (does not add image pull secrets to deployed pods)
image.debugSpecify if debug logs should be enabledfalse
kubeVersionForce target Kubernetes version (using Helm capabilities if not set)nil
hostAliasesAdd deployment host aliases[]
nameOverrideString to partially override logstash.fullname template with a string (will prepend the release name)nil
fullnameOverrideString to fully override logstash.fullname template with a stringnil
clusterDomainDefault Kubernetes cluster domaincluster.local
configFileNameLogstash configuration file name. It must match the name of the configuration file mounted as a configmap.logstash.conf
enableMonitoringAPIWhether to enable the Logstash Monitoring API or not Kubernetes cluster domaintrue
monitoringAPIPortLogstash Monitoring API Port9600
extraEnvVarsArray containing extra env vars to configure Logstashnil
extraEnvVarsSecretKubernetes Secrets namenil
extraEnvVarsCMKubernetes Configmap namenil
inputInput Plugins configurationCheck values.yaml file
filterFilter Plugins configurationnil
outputOutput Plugins configurationCheck values.yaml file
existingConfigurationName of existing ConfigMap object with the Logstash configuration (input, filter, and output will be ignored).nil
enableMultiplePipelinesAllows user to use multiple pipelinesfalse
containerPortsArray containing the ports to open in the Logstash containerCheck values.yaml file
extraVolumesArray to add extra volumes (evaluated as a template)[]
extraVolumeMountsArray to add extra mounts (normally used with extraVolumes, evaluated as a template)[]
replicaCountThe number of Logstash replicas to deploy1
updateStrategyUpdate strategy (RollingUpdate, or OnDelete)RollingUpdate
podManagementPolicyPod management policyOrderedReady
podAnnotationsPod annotations{} (The value is evaluated as a template)
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hardsoft
nodeAffinityPreset.typeNode affinity preset type. Ignored if affinity is set. Allowed values: soft or hard""
nodeAffinityPreset.keyNode label key to match. Ignored if affinity is set.""
nodeAffinityPreset.valuesNode label values to match. Ignored if affinity is set.[]
affinityAffinity for pod assignment{} (evaluated as a template)
nodeSelectorNode labels for pod assignment{} (evaluated as a template)
initContainersExtra containers to run before logstash for initialization purposes like custom plugin install.[] (evaluated as a template)
tolerationsTolerations for pod assignment[] (evaluated as a template)
priorityClassNameController priorityClassNamenil
securityContext.enabledEnable security context for Logstashtrue
securityContext.fsGroupGroup ID for the Logstash filesystem1001
securityContext.runAsUserUser ID for the Logstash container1001
resources.limitsThe resources limits for the Logstash container{}
resources.requestsThe requested resources for the Logstash container{}
livenessProbeLiveness probe configuration for LogstashCheck values.yaml file
lifecyclePOD Lifecycle hook(s) for LogstashCheck values.yaml file
readinessProbeReadiness probe configuration for LogstashCheck values.yaml file
service.typeKubernetes service type (ClusterIP, NodePort, or LoadBalancer)ClusterIP
service.portsArray containing the Logstash service portsCheck values.yaml file
service.annotationsAnnotations for Logstash service{}
service.loadBalancerIPloadBalancerIP 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartlogstash is pinned at v3.5.5 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