Git Product home page Git Product logo

elasticsearch's Introduction

ElasticSearch cluster deployment on kubernetes

2017-12-29

The present project is based on the work of Paulo Pires, thus is highly recommended to review his project and his documentation at https://github.com/pires/kubernetes-elasticsearch-cluster also because I do not provide the entire documentation. The Paulo Pires documentation applies to this project too.

Advantages in this project

  • Support for X-Pack plugin: At this moment the image that Paulo Pires uses does not support X-Pack.
  • Support for default plugins: At this moment the image that Paulo Pires uses is very minimalist. He disabled the default plugins, but this project does not.
  • A new Dockerfile is created based in the official image docker.elastic.co/elasticsearch/elasticsearch:6.1.1, thus it can be easier to migrate to a new elasticsearch version.

Disadvantages

NOTES

  • At this moment I am not implementing the version Statefulset for k8s
  • I Added a new environment variable ${LICENSE} inside elasticsearch.yml to support self_generated license at this moment if you no provide your own the default is basic.
  • The image is created to work with kubernetes but if you want to execute it with docker run, you must comment the ENV DISCOVERY_SERVICE elasticsearch-discovery inside docker file visit https://github.com/pires/docker-elasticsearch to see how to run it.

Deploy

Docker Image
cd docker
docker build --tag=k8s/elasticsearch:6.1.1 .
kubernetes
cd kubernetes
kubectl create -f elasticsearch-discovery-svc.yaml
kubectl create -f elasticsearch-svc.yaml
kubectl create -f elasticsearch-master.yaml
kubectl rollout status -f elasticsearch-master.yaml
kubectl create -f elasticsearch-client.yaml
kubectl rollout status -f elasticsearch-client.yaml
kubectl create -f elasticsearch-data.yaml
kubectl rollout status -f elasticsearch-data.yaml

Follow the Paulo Pires documentation to Test It

elasticsearch's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.