How to set up Cluster Discovery for a Atomix API application inside kubernetes

1/6/2020

I want to use the atomix framework using the java API in my application.

The application should be deployed and scaled via kubernetes. And every Pod should be "connected" with all Pods of the same kubernetes deployment.

I have seen in the documentation that there are different ways how to set up cluster discovery, so that each node of the cluster knows all members but no configuration seems to work for my scenario.

  1. Manual config: Manual configure all members in a list will not work for kubernetes.
  2. Use multicast: AFAIK multicast is also not a good option in kubernetes.
  3. DNS: I also don't think that I could use DNS discovery for it (because DNS is normally per service and not per Pod)

There is also a section about kubernetes deployment in the atomix manual but it seems that this is only useful for launching multiple atomix agents in a cluster and not for scaling a custom application which uses the Atomix API (please let me know if I get this wrong)

I don't have found any examples for such a setting even if it should be quite a common task to solve...

-- snap
atomix
java
kubernetes

0 Answers