Connect ArangoDB cluster hosted on Kubernetes pods via Python Connect ArangoDB cluster hosted on Kubernetes pods via Python kubernetes kubernetes

Connect ArangoDB cluster hosted on Kubernetes pods via Python


if you follow this : https://www.arangodb.com/2018/12/deploying-arangodb-3-4-on-kubernetes/

there is YAML config files it's creating multiple PODs. How your application should be connecting with ArragoDB is using the Kubernetes service.

So your application will be connecting to Kubernetes service and by default kubernets service manage the RoundRobin load balancing.

in example you can see it's creating three services

my-arangodb-cluster          ClusterIP      10.11.247.191   <none>           8529/TCP         46mmy-arangodb-cluster-ea       LoadBalancer   10.11.241.253   35.239.220.180   8529:31194/TCP   46mmy-arangodb-cluster-int      ClusterIP      None            <none>           8529/TCP         46m

service my-arangodb-cluster-ea publicly open. While service my-arangodb-cluster can be accessed internally using the application.

Your flow will be something like

Application > Arango service (Round robin) > Arango Pods