How to access replicated databases in Kubernetes? How to access replicated databases in Kubernetes? kubernetes kubernetes

How to access replicated databases in Kubernetes?


A headless Service is a DNS resolver inside your cluster which resolves to all internal IP addresses of the pods the service is pointing on. So you can never expose it, because the IP adresses only work from inside your cluster.

The easiest way would to build an Api-layer to access the Database and expose this API.