Hazelcast in Kubernetes deprecated
With 7.10.5 it is possible to deploy the App Suite middleware within a kubernetes cluster. For this to work the hazelcast kubernetes plugin has been integrated. This plugin provides a discovery mechanism which allows hazelcast instances to find other hazelcast nodes by using kubernetes resources. The plugin is shipped with the normal open-xchange-hazelcast package. In addition to the usual hazelcast configuration you only need to configure two properties and a kubernetes service for this to work. For example:
com.openexchange.hazelcast.network.join=kubernetes
com.openexchange.hazelcast.network.join.k8s.serviceDNS=middleware-hazelcast.default.svc.cluster.local
apiVersion: v1
kind: Service
metadata:
name: middleware-hazelcast
spec:
type: LoadBalancer
selector:
app.kubernetes.io/name: middleware
ports:
- name: hazelcast
port: 5701
Please note that the selector of the service must match all nodes with hazelcast instances.