Skip to content

lchenn/docker-odfe-cluster

Repository files navigation

docker-odfe-cluster

Generate the docker-compose.yaml files so that:

  1. Create an Elasticsearch cluster with dockers
  2. Assume each node will stay in a different node
  3. Use Open Distro for Elasticsearch as the base docker image.

How to use this repo

  1. Update the NODE_NAMES, NODE_IPS, and NODE_HOSTS, ensure each index represents one node
  2. Run sh generate_cluster.sh
  3. The results will be in the out directory

SSL Config

This script doesn't support tls yet. We can use the following scripts to generate ssl certificates.

To replace the demo certificate, it's about configuring the following in the docker-compose.yaml file. We would need 5 certificate related:

  1. A root CA cert (key is not needed)
  2. A pair of cert and key for the node (each node should be different)
  3. A pair of cert and key for admin (the same for all the nodes)
    volumes:
      - ./root-ca.pem:/usr/share/elasticsearch/config/root-ca.pem
      - ./node.pem:/usr/share/elasticsearch/config/node.pem
      - ./node-key.pem:/usr/share/elasticsearch/config/node-key.pem
      - ./admin.pem:/usr/share/elasticsearch/config/admin.pem
      - ./admin-key.pem:/usr/share/elasticsearch/config/admin-key.pem

See more there: https://opendistro.github.io/for-elasticsearch-docs/docs/install/docker-security/

About

Build Elasticsearch cluster with dockers and Open Distro for Elasticsearch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors