Hazelcast provides a few methods to simplify deploying Hazelcast cluster into Kubernetes-based environments. For production-grade Kubernetes deployment, use Helm chart or Kubernetes/OpenShift Operator.
If you just want to play with Hazelcast on Kubernetes, execute the following commands to create Hazelcast cluster
with 3 members into
default namespace using the
default Service Account.
kubectl apply -f https://raw.githubusercontent.com/hazelcast/hazelcast-kubernetes/master/rbac.yaml kubectl run hazelcast-1 --image=hazelcast/hazelcast:$HAZELCAST_VERSION kubectl run hazelcast-2 --image=hazelcast/hazelcast:$HAZELCAST_VERSION kubectl run hazelcast-3 --image=hazelcast/hazelcast:$HAZELCAST_VERSION
Hazelcast members automatically discovers themselves using the Hazelcast Kubernetes Discovery plugin and therefore form one Hazelcast cluster.
Kubernetes Operators are software extensions to Kubernetes which help you create and manage your applications. You can deploy and manage Hazelcast using the following Operators:
hazelcast/hazelcast-operator: Hazelcast Operator hosted on Docker Hub
hazelcast/hazelcast-enterprise-operator: Red Hat certified Hazelcast Enterprise Operator hosted on Docker Hub
registry.connect.redhat.com/hazelcast/hazelcast-enterprise-operator: Hazelcast Enterprise Operator hosted on Red Hat Container Catalog
There are a few different ways in using Hazelcast Operators: