elasticsearch
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 install <helm-repo>/elasticsearch
$ 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 install --name my-release <helm-repo>/elasticsearch
$ helm install --name my-release bitnami/elasticsearch The command deploys 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.
| 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) |
image.registry | Elasticsearch image registry | docker.io |
image.repository | Elasticsearch image repository | bitnami/elasticsearch |
image.tag | Elasticsearch image tag | {VERSION} |
image.pullPolicy | Image pull policy | Always |
image.pullSecrets | Specify docker-registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
name | Elasticsearch cluster name | elastic |
plugins | Comma, semi-colon or space separated list of plugins to install at initialization | nil |
config | Elasticsearch node custom configuration | `` |
master.name | Master-eligible node pod name | master |
master.replicas | Desired number of Elasticsearch master-eligible nodes | 2 |
master.heapSize | Master-eligible node heap size | 128m |
master.antiAffinity | Master-eligible node pod anti-affinity policy | soft |
coordinating.nodeAffinity | Master-eligible node affinity policy | nil |
master.service.type | Kubernetes Service type (master-eligible nodes) | ClusterIP |
master.service.port | Kubernetes Service port for Elasticsearch transport port (master-eligible nodes) | 9300 |
master.service.nodePort | Kubernetes Service nodePort (master-eligible nodes) | nil |
master.service.annotations | Annotations for master-eligible nodes service | {} |
master.service.loadBalancerIP | loadBalancerIP if master-eligible nodes service type is LoadBalancer | nil |
master.resources | CPU/Memory resource requests/limits for master-eligible nodes pods | requests: { cpu: "25m", memory: "256Mi" } |
master.livenessProbe.enabled | Enable/disable the liveness probe (master-eligible nodes pod) | true |
master.livenessProbe.initialDelaySeconds | Delay before liveness probe is initiated (master-eligible nodes pod) | 90 |
master.livenessProbe.periodSeconds | How often to perform the probe (master-eligible nodes pod) | 10 |
master.livenessProbe.timeoutSeconds | When the probe times out (master-eligible nodes pod) | 5 |
master.livenessProbe.successThreshold | Minimum consecutive successes for the probe to be considered successful after having failed (master-eligible nodes pod) | 1 |
master.livenessProbe.failureThreshold | Minimum consecutive failures for the probe to be considered failed after having succeeded | 5 |
master.podAnnotations | Annotations for master pods. | {} |
master.readinessProbe.enabled | Enable/disable the readiness probe (master-eligible nodes pod) | true |
master.readinessProbe.initialDelaySeconds | Delay before readiness probe is initiated (master-eligible nodes pod) | 90 |
master.readinessProbe.periodSeconds | How often to perform the probe (master-eligible nodes pod) | 10 |
master.readinessProbe.timeoutSeconds | When the probe times out (master-eligible nodes pod) | 5 |
master.readinessProbe.successThreshold | Minimum consecutive successes for the probe to be considered successful after having failed (master-eligible nodes pod) | 1 |
master.readinessProbe.failureThreshold | Minimum consecutive failures for the probe to be considered failed after having succeeded | 5 |
securityContext.enabled | Enable security context | true |
securityContext.fsGroup | Group ID for the container | 1001 |
securityContext.runAsUser | User ID for the container | 1001 |
discovery.name | Discover node pod name | discovery |
coordinating.name | Coordinating-only node pod name | coordinating-only |
coordinating.replicas | Desired number of Elasticsearch coordinating-only nodes | 2 |
coordinating.heapSize | Coordinating-only node heap size | 128m |
coordinating.antiAffinity | Coordinating-only node pod anti-affinity policy | soft |
coordinating.nodeAffinity | Coordinating-only node affinity policy | nil |
coordinating.podAnnotations | Annotations for coordniating pods. | {} |
coordinating.service.type | Kubernetes Service type (coordinating-only nodes) | ClusterIP |
coordinating.service.port | Kubernetes Service port for REST API (coordinating-only nodes) | 9200 |
coordinating.service.nodePort | Kubernetes Service nodePort (coordinating-only nodes) | nil |
coordinating.service.annotations | Annotations for coordinating-only nodes service | {} |
coordinating.service.loadBalancerIP | loadBalancerIP if coordinating-only nodes service type is LoadBalancer | nil |
coordinating.resources | CPU/Memory resource requests/limits for coordinating-only nodes pods | requests: { cpu: "25m", memory: "256Mi" } |
| `coordinating.live |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartelasticsearch is pinned at v5.1.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