<p>I have a database (oracle) in my server and I have multiple processes which using this database running in Kubernetes in Google Cloud. To establish the connection to the database, I need to add the IP address of my application node to the database vault.</p>
<p>I don't want to add 3 different IPs to the vault instead I want a common IP address. Is there any way to do that? in the real environment, I have more than 100 processes which access the same database.</p>

Nevin Thomas
<p>There is a lot of ways of doing that. But what you want is some kind of a load balancer or ingress that will translate all of your 3 ip's into 1 IP or a hostname dns.</p>
<p>The easier way of doing that is to create a NGINX instance (do that inside on your kubernetes cluster, it is very easy - <a href="https://kubernetes.github.io/ingress-nginx/deploy/" rel="nofollow noreferrer">https://kubernetes.github.io/ingress-nginx/deploy/</a>) and then you can configure your NGINX instance to route your IP's traffic to the NGINX. Then you will use your NGINX Service to access your DB instance. There's an example here - <a href="http://nginx.org/en/docs/http/load_balancing.html" rel="nofollow noreferrer">http://nginx.org/en/docs/http/load_balancing.html</a></p>
<p>But you can look other great solutions too, such as <a href="https://istio.io/" rel="nofollow noreferrer">istio</a> or <a href="https://traefik.io/" rel="nofollow noreferrer">traefik</a></p>
