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,260 points
3,315 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,460 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,230 points
1,030 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
15,578 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,064 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,460 points
1,941 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,460 points
1,684 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP