Home

Awesome

hazelcast-kubernetes-bootstrapper

Hazelcast (3.12.3) cluster discovery mechanism for Kubernetes.

What is

Kubernetes is an open source orchestration system for Docker containers. It handles scheduling onto nodes in a compute cluster and actively manages workloads to ensure that their state matches the users declared intentions. Using the concepts of "labels" and "pods", it groups the containers which make up an application into logical units for easy management and discovery.

In order to cluster Hazelcast in Kubernetes - and harness full scale-up/down capabilities provided -, each instance must know beforehand which pods containing Hazelcast instances are already up & running, so that networking may be configured properly. This is achieved by means of looking-up pods with certain labels in Kubernetes API. The code provided does that and configures Hazelcast TCP clustering.

To configure Hazelcast inside of the Kubernetes cluster the following environment options can be used:

This is used in pires/hazelcast-kubernetes.

Pre-requisites

Build

mvn clean package