This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Setting Up a Cluster in Kubernetes Mode

When WSO2 Carbon servers are deployed in a clustered mode on Kubernetes, the Kubernetes Membership Scheme enables automatically discovering these servers. 

How it works

Once a WSO2 Carbon server starts, the Kubernetes Membership Scheme queries the Kubernets API to retrieve the IP addresses of the pods/containers of the cluster. Next, the configurations of the Hazelcast cluster instance is updated with the newly found pod IP addresses. As a result, the Hazelcast instance gets connected with all the other members in the cluster. 

When a new member is added to the cluster, all the other members automatically get connected to the new member.

The Kubernetes Membership Scheme supports finding the pod IP addresses using the Kubernetes API as well as the DNS.