elasticsearch using kubernetes

3-Node Client, Data and Master deployment of ES
  • An headless service (for intra-node communication)
  • A LoadBalancer service (for providing REST endpoint to outside world) using Client Nodes only.
  • A StatefulSet for Master node(s).
  • A StatefulSet for Data Nodes.
  • A StatefulSet for Client Nodes.

Step 1: Setup headless service and Master node cluster.

Some highlights from the config below,
(1) We add an headless service and make sure to use this service as part of the StatefulSet, so that ordinal indexes are used properly to name the node(s).

Step 2: Setup LoadBalancer and Client Node

Some highlights from the config below,

Step 3: Setup DataNode

Some highlights from the config below,

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store