Java Dgraph Client - Connecting Dgraph server running in Kubernates

Hi,

I have my dgraph server running in Kubernetes HA config. Using dgraph java client to connect to the dgraph server to do mutations and query ,

  1. Do i need to use dgraph_client_cert , dgraph_client_private_key, dgraph_client_public_key, dgraph_alpha_endpoint for connection? if so could you please share the code snippet for java client

  2. Or Just by using dgraph_alpha_endpoint and port (9080) is enough to make the connection?

You can find the code snippet here GitHub - dgraph-io/dgraph4j: Official Dgraph Java client

1 Like