elasticsearch5
by ygqygq2
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.
| 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 | Elasticsearch image registry | docker.io |
image.repository | Elasticsearch image repository | bitnami/elasticsearch |
image.tag | Elasticsearch image tag | {TAG_NAME} |
image.pullPolicy | Image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
nameOverride | String to partially override elasticsearch.fullname template with a string (will prepend the release name) | nil |
fullnameOverride | String to fully override elasticsearch.fullname template with a string | nil |
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 |
clusterDomain | Kubernetes cluster domain | cluster.local |
discovery.name | Discover node pod name | discovery |
coordinating.name | Coordinating-only node pod name | coordinating-only |
coordinating.replicas | Desired |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartelasticsearch5 is pinned at v6.2.2 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