Ip address of kubernetes cluster for firewall


#1

Hi guys,

I need some help on understanding the kubernetes cluster networking better.

Currently i am using kubernetes at GCP.

i have run a made a cluster and deploy my own service into the cluster.

The service running fine till at a point that my service need to connect to an external database.

My databases is located and Azure with my networking guys need to open specific port and IP only to the services tat are using the DB. What i can’t figure out is in kubernetes cluster what IP should i allow in my firewall configuration to make this work.

thank you

regards
David Ooi


#2

What you are looking for is this: https://cloud.google.com/solutions/using-a-nat-gateway-with-kubernetes-engine

I think that explains pretty much the networking issues on normal circumstances and provided a solution for GCP. That should be it :slight_smile:


#3

Hi thanks rata ,

I will try this and see how it goes.

Thank for the reply