elasticsearch

by genofire

Helm chartv0.4.0App 0.4.0

Provides easy Elasticsearch cluster setup

About this chart

Elasticsearch Cluster

Elasticsearch is a poplular NoSQL database which gets used for multiple purpose like:- database, logging, searching, etc. his helm chart needs Logging Operator inside Kubernetes cluster. The elasticsearch definition can be modified or changed by values.yaml.

Documentation -> https://ot-logging-operator.netlify.app/

$ helm repo add ot-helm https://ot-container-kit.github.io/helm-charts/
$ helm install <my-release> ot-helm/elasticsearch --namespace <namespace>

Elasticsearch setup can be upgraded by using helm upgrade command:-

$ helm upgrade <my-release> ot-helm/elasticsearch --install --namespace <namespace>

For uninstalling the chart:-

$ helm delete <my-release> --namespace <namespace>

Pre-Requisities

  • Kubernetes => 1.15
  • Helm => 3.X
  • Logging Operator => 0.3.0

Parameters

NameValueDescription
clusterNameelastic-prodName of the elasticsearch cluster
esVersion7.17.0Major and minor version of elaticsearch
esPlugins[]Plugins list to install inside elasticsearch
esKeystoreSecret-Keystore secret to include in elasticsearch cluster
customConfiguration{}Additional configuration parameters for elasticsearch
esSecurity.enabledtrueTo enabled the xpack security of elasticsearch
esMaster.replicas3Number of replicas for elasticsearch master node
esMaster.storage.storageSize20GiSize of the elasticsearch persistent volume for master
esMaster.storage.accessModes[ReadWriteOnce]Access modes of the elasticsearch persistent volume for master
esMaster.storage.storageClassdefaultStorage class of the elasticsearch persistent volume for master
esMaster.jvmMaxMemory1GiJava max memory for elasticsearch master node
esMaster.jvmMinMemory1GiJava min memory for elasticsearch master node
esMaster.resources{}Resources for elasticsearch master pods
esMaster.nodeSelectors{}Nodeselectors map key-values for elasticsearch master pods
esMaster.affinity{}Affinity and anit-affinity for elasticsearch master pods
esMaster.tolerations{}Tolerations and taints for elasticsearch master pods
esData.replicas3Number of replicas for elasticsearch data node
esData.storage.storageSize50GiSize of the elasticsearch persistent volume for data
esData.storage.accessModes[ReadWriteOnce]Access modes of the elasticsearch persistent volume for data
esData.storage.storageClassdefaultStorage class of the elasticsearch persistent volume for data
esData.jvmMaxMemory1GiJava max memory for elasticsearch data node
esData.jvmMinMemory1GiJava min memory for elasticsearch data node
esData.resources{}Resources for elasticsearch data pods
esData.nodeSelectors{}Nodeselectors map key-values for elasticsearch data pods
esData.affinity{}Affinity and anit-affinity for elasticsearch data pods
esData.tolerations{}Tolerations and taints for elasticsearch data pods
esIngestion.replicas-Number of replicas for elasticsearch ingestion node
esIngestion.storage.storageSize-Size of the elasticsearch persistent volume for ingestion
esIngestion.storage.accessModes-Access modes of the elasticsearch persistent volume for ingestion
esIngestion.storage.storageClass-Storage class of the elasticsearch persistent volume for ingestion
esIngestion.jvmMaxMemory-Java max memory for elasticsearch ingestion node
esIngestion.jvmMinMemory-Java min memory for elasticsearch ingestion node
esIngestion.resources-Resources for elasticsearch ingestion pods
esIngestion.nodeSelectors-Nodeselectors map key-values for elasticsearch ingestion pods
esIngestion.affinity-Affinity and anit-affinity for elasticsearch ingestion pods
esIngestion.tolerations-Tolerations and taints for elasticsearch ingestion pods
esClient.replicas-Number of replicas for elasticsearch ingestion node
esClient.storage.storageSize-Size of the elasticsearch persistent volume for client
esClient.storage.accessModes-Access modes of the elasticsearch persistent volume for client
esClient.storage.storageClass-Storage class of the elasticsearch persistent volume for client
esClient.jvmMaxMemory-Java max memory for elasticsearch client node
esClient.jvmMinMemory-Java min memory for elasticsearch client node
esClient.resources-Resources for elasticsearch client pods
esClient.nodeSelectors-Nodeselectors map key-values for elasticsearch client pods
esClient.affinity-Affinity and anit-affinity for elasticsearch client pods
esClient.tolerations-Tolerations and taints for elasticsearch client pods

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 v0.4.0 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