Skip to content

Latest commit

 

History

113 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElasticSearch on Kubernetes

Build Status Docker Repository on Quay

ElasticSearch 6.8.1.

Configuration

Configuration is done via environment variables.

The following configuration defaults may not necessarily be set to the same values in kube/ example files.

Plugins

Deployment

By default if you start the docker container, ElasticSearch will start in standalone mode.

Deploying onto a Kubernetes cluster is fairly easy. There are example kubernetes controller and service files in kube/ directory.

Deploy Master Node

First of all we need to deploy master service for ES master nodes to find each other and other communications between nodes. Then we can create the master replication controller.

$ kubectl create -f kube/es-master-svc.yaml
$ kubectl create -f kube/es-master-rc.yaml

Wait a few seconds and verify whether it is up and running. You can also scale the master nodes to 3.

$ kubectl logs -f es-master-fdfw -c elasticsearch
$ kubectl scale --replicas=3 rc/es-master

Deploy Client and Data Nodes

Once the master node is up and running, you can start deploying the rest of the cluster.

$ kubectl create -f kube/es-svc.yaml
$ kubectl create -f kube/es-client-rc.yaml
$ kubectl create -f kube/es-data-rc.yaml

About

ElasticSearch with Kubernetes Discovery

Resources

Stars

9 stars

Watchers

21 watching

Forks

Releases

Packages

Contributors

Languages