elasticsearch

by joaquinito2051

Helm chartv19.4.6App 8.5.0

Elasticsearch is a distributed search and analytics engine. It is used for web search, log monitoring, and real-time analytics. Ideal for Big Data applications.

About this chart

Bitnami Elasticsearch Stack

Elasticsearch is a distributed search and analytics engine. It is used for web search, log monitoring, and real-time analytics. Ideal for Big Data applications.

Overview of Elasticsearch

Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

Azure-ready Charts with Containers from marketplace.azurecr.io

This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.

$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo

TL;DR

$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/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.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+
  • PV provisioner support in the underlying infrastructure

Installing the Chart

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

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

These commands deploy Elasticsearch on the Kubernetes cluster in the default configuration. The Parameters 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

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""
global.elasticsearch.service.nameElasticsearch service name to be used in the Kibana subchart (ignored if kibanaEnabled=false)elasticsearch
global.elasticsearch.service.ports.restAPIElasticsearch service restAPI port to be used in the Kibana subchart (ignored if kibanaEnabled=false)9200
global.kibanaEnabledWhether or not to enable Kibanafalse

Common parameters

NameDescriptionValue
kubeVersionOverride Kubernetes version""
nameOverrideString to partially override common.names.fullname""
fullnameOverrideString to fully override common.names.fullname""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
clusterDomainKubernetes cluster domain namecluster.local
extraDeployArray of extra objects to deploy with the release[]
namespaceOverrideString to fully override common.names.namespace""
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the deployment["sleep"]
diagnosticMode.argsArgs to override all containers in the deployment["infinity"]

Elasticsearch cluster Parameters

NameDescriptionValue
clusterNameElasticsearch cluster nameelastic
containerPorts.restAPIElasticsearch REST API port9200
containerPorts.transportElasticsearch Transport port9300
pluginsComma, semi-colon or space separated list of plugins to install at initialization""
snapshotRepoPathFile System snapshot repository path""
configOverride elasticsearch configuration{}
extraConfigAppend extra configuration to the elasticsearch node configuration{}
extraHostsA list of external hosts which are part of this cluster[]
extraVolumesA list of volumes to be added to the pod[]
extraVolumeMountsA list of volume mounts to be added to the pod[]
initScriptsDictionary of init scripts. Evaluated as a template.{}
initScriptsCMConfigMap with the init scripts. Evaluated as a template.""
initScriptsSecretSecret containing /docker-entrypoint-initdb.d scripts to be executed at initialization time that contain sensitive data. Evaluated as a template.""
extraEnvVarsArray containing extra env vars to be added to all pods (evaluated as a template)[]
extraEnvVarsCMConfigMap containing extra env vars to be added to all pods (evaluated as a template)""
extraEnvVarsSecretSecret containing extra env vars to be added to all pods (evaluated as a template)""
sidecarsAdd additional sidecar containers to the all elasticsearch node pod(s)[]
initContainersAdd additional init containers to the all elasticsearch node pod(s)[]
image.registryElasticsearch image registrydocker.io
image.repositoryElasticsearch image repositorybitnami/elasticsearch
image.tagElasticsearch image tag (immutable tags are recommended)8.5.0-debian-11-r0
image.digestElasticsearch image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
image.pullPolicyElasticsearch image pull policyIfNotPresent
image.pullSecretsElasticsearch image pull secrets[]
image.debugEnable Elasticsearch image debug modefalse
security.enabledEnable X-Pack Security settingsfalse
security.elasticPasswordPassword for 'elastic' user""
security.existingSecretName of the existing secret containing the Elasticsearch password and""
security.fipsModeConfigure elasticsearch with FIPS 140 compliant modefalse
security.tls.restEncryptionEnable SSL/TLS encryption for Elasticsearch REST API.true
security.tls.autoGeneratedCreate self-signed TLS certificates.false
security.tls.verificationModeVerification mode for SSL communications.full
security.tls.master.existingSecretExisting secret containing the certificates for the master nodes""
security.tls.data.existingSecretExisting secret containing the certificates for the data nodes""
security.tls.ingest.existingSecretExisting secret containing the certificates for the ingest nodes

Deploy elasticsearch with OpenTenant

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