<p>We are currently migrating from AWS ECS to Azure Kubernetes Service. Our first step is to first migrate the application code and just leave the database in AWS RDS, for now. Our RDS instance is protected by a security group which only allows connection from a set of IP addresses. </p>

<p>When connecting to the RDS instance, what IP address does the database see? How can I configure RDS to allow connection from a kubernetes pod?</p>

Gino Corpuz
<p>If you have an Azure Load Balancer (so any kubernetes service with type <code>LoadBalancer</code>) attached to worker nodes - they will use the first IP attached to the Load Balancer. If not - they will use public IP attached to the VM they run on. If the VM doesnt have a public IP (default for AKS), they will use ethereal IP that might change anytime and you have no control over that.</p>

<p>So just create a service with the type of LoadBalancer in AKS, find its external IP address and whitelist that.</p>
