How to deploy an Elasticsearch Cluster with Helm

0 votes

Hi Guys,

I am new to Helm. I want to create an Elasticsearch Cluster using Helm. How can I do that?

Jul 8, 2020 in Kubernetes by akhtar
• 38,180 points
1,129 views

1 answer to this question.

0 votes

Hi@akhtar,

You need to download the helm repo to create an Elasticsearch Cluster. You can follow the below-given steps.

  • Add Elastic’s Helm repository.

$ Helm repo add elastic https://Helm.elastic.co
  • download the Helm configuration for installing a multi-node Elasticsearch cluster on Minikube.

$ curl -O https://raw.githubusercontent.com/elastic/Helm-charts/master/elasticsearch/examples/minikube/values.yaml
  • Install the Elasticsearch Helm chart using the configuration you just downloaded.

$ Helm install --name elasticsearch elastic/elasticsearch -f ./values.yaml 
NAME:   elasticsearch
LAST DEPLOYED: Mon Sep 16 17:28:20 2019
NAMESPACE: default
STATUS: DEPLOYED
RESOURCES:
==> v1/Pod(related)
NAME                    READY  STATUS   RESTARTS  AGE
elasticsearch-master-0  0/1    Pending  0         0s
==> v1/Service
NAME                           TYPE       CLUSTER-IP     EXTERNAL-IP  PORT(S)            AGE
elasticsearch-master           ClusterIP  10.101.239.94         9200/TCP,9300/TCP  0s
elasticsearch-master-headless  ClusterIP  None                  9200/TCP,9300/TCP  0s
==> v1beta1/PodDisruptionBudget
NAME                      MIN AVAILABLE  MAX UNAVAILABLE  ALLOWED DISRUPTIONS  AGE
elasticsearch-master-pdb  N/A            1                0                    0s
==> v1beta1/StatefulSet
NAME                  READY  AGE
elasticsearch-master  0/3    0s
NOTES:
1. Watch all cluster members come up.
  $ kubectl get pods --namespace=default -l app=elasticsearch-master -w
2. Test cluster health using Helm test.
  $ Helm test elasticsearch
  • last step for deploying Elasticsearch is to set up port forwarding.

$ kubectl port-forward svc/elasticsearch-master 9200
answered Jul 8, 2020 by MD
• 95,220 points

Related Questions In Kubernetes

+1 vote
1 answer

How to deploy a feature with zero downtime in kubernetes?

By default Deployment in Kubernetes uses RollingUpdate as a ...READ MORE

answered Jul 18, 2019 in Kubernetes by Sirajul
• 59,070 points
467 views
0 votes
2 answers
0 votes
2 answers
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
10,547 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 11, 2019 in Kubernetes by Kalgi
• 52,350 points

reshown Apr 12, 2019 by Kalgi 3,298 views
0 votes
1 answer

How to deploy Jenkins pod in minikube?

Hi@akhtar, In minikube you don't have to download ...READ MORE

answered May 19, 2020 in Kubernetes by MD
• 95,220 points
862 views
0 votes
1 answer

How to create one PVC in Kubernetes Cluster?

Hi@akhtar, In Kubernetes, no command is available to ...READ MORE

answered Jul 6, 2020 in Kubernetes by MD
• 95,220 points
520 views