kubernetes and database public IP
we have created an kubernetes cluster , so it created an vcn and subnets in the kubernetes compartment
we have some databases in another vcn so the ranges of ips are the same ( 10.0.0.0/16)
we need to connect the pods with database using jdbc and used the public ip of the databases ( 130.X ) ,so
- is there a way to connect two vcn ?
- its better to use the private ip ?, whats the difference if using a private IP ?