elasticsearch5

by ygqygq2

Helm chartv6.2.2App 7.3.0Verified publisher

A highly scalable open-source full-text search and analytics engine

About this chart

Elasticsearch

Elasticsearch is a highly scalable open-source full-text search and analytics engine. It allows you to store, search, and analyze big volumes of data quickly and in near real time.

TL;DR

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install bitnami/elasticsearch

Introduction

This chart bootstraps a Elasticsearch 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. This Helm chart has been tested on top of Bitnami Kubernetes Production Runtime (BKPR). Deploy BKPR to get automated TLS certificates, logging and monitoring for your applications.

Prerequisites

  • Kubernetes 1.6+ with Beta APIs enabled
  • PV provisioner support in the underlying infrastructure

Installing the Chart

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

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install --name my-release bitnami/elasticsearch

These commands deploy Elasticsearch 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 release:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release. Remove also the chart using --purge option:

$ helm delete --purge my-release

Configuration

The following table lists the configurable parameters of the Elasticsearch 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.registryElasticsearch image registrydocker.io
image.repositoryElasticsearch image repositorybitnami/elasticsearch
image.tagElasticsearch image tag{TAG_NAME}
image.pullPolicyImage pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[] (does not add image pull secrets to deployed pods)
nameOverrideString to partially override elasticsearch.fullname template with a string (will prepend the release name)nil
fullnameOverrideString to fully override elasticsearch.fullname template with a stringnil
nameElasticsearch cluster nameelastic
pluginsComma, semi-colon or space separated list of plugins to install at initializationnil
configElasticsearch node custom configuration``
master.nameMaster-eligible node pod namemaster
master.replicasDesired number of Elasticsearch master-eligible nodes2
master.heapSizeMaster-eligible node heap size128m
master.antiAffinityMaster-eligible node pod anti-affinity policysoft
coordinating.nodeAffinityMaster-eligible node affinity policynil
master.service.typeKubernetes Service type (master-eligible nodes)ClusterIP
master.service.portKubernetes Service port for Elasticsearch transport port (master-eligible nodes)9300
master.service.nodePortKubernetes Service nodePort (master-eligible nodes)nil
master.service.annotationsAnnotations for master-eligible nodes service{}
master.service.loadBalancerIPloadBalancerIP if master-eligible nodes service type is LoadBalancernil
master.resourcesCPU/Memory resource requests/limits for master-eligible nodes podsrequests: { cpu: "25m", memory: "256Mi" }
master.livenessProbe.enabledEnable/disable the liveness probe (master-eligible nodes pod)true
master.livenessProbe.initialDelaySecondsDelay before liveness probe is initiated (master-eligible nodes pod)90
master.livenessProbe.periodSecondsHow often to perform the probe (master-eligible nodes pod)10
master.livenessProbe.timeoutSecondsWhen the probe times out (master-eligible nodes pod)5
master.livenessProbe.successThresholdMinimum consecutive successes for the probe to be considered successful after having failed (master-eligible nodes pod)1
master.livenessProbe.failureThresholdMinimum consecutive failures for the probe to be considered failed after having succeeded5
master.podAnnotationsAnnotations for master pods.{}
master.readinessProbe.enabledEnable/disable the readiness probe (master-eligible nodes pod)true
master.readinessProbe.initialDelaySecondsDelay before readiness probe is initiated (master-eligible nodes pod)90
master.readinessProbe.periodSecondsHow often to perform the probe (master-eligible nodes pod)10
master.readinessProbe.timeoutSecondsWhen the probe times out (master-eligible nodes pod)5
master.readinessProbe.successThresholdMinimum consecutive successes for the probe to be considered successful after having failed (master-eligible nodes pod)1
master.readinessProbe.failureThresholdMinimum consecutive failures for the probe to be considered failed after having succeeded5
securityContext.enabledEnable security contexttrue
securityContext.fsGroupGroup ID for the container1001
securityContext.runAsUserUser ID for the container1001
clusterDomainKubernetes cluster domaincluster.local
discovery.nameDiscover node pod namediscovery
coordinating.nameCoordinating-only node pod namecoordinating-only
coordinating.replicasDesired

Deploy elasticsearch5 with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has elasticsearch5 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 chartelasticsearch5 is pinned at v6.2.2 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