Search code examples
azurekubernetescontainerskubectlazure-container-service

unable to access DB pod External IP from application


I've created two pods top of Azure Kubernetes cluster 1) Application 2) MS SQL server

both pods are exposed via Azure Loadbalancer and both having External IPs. I am unable to use the External IP in my application config file. But I can connect that SQL Server from anywhere. For some reason I am unable to telnet DB IP from Application container.

the connection is getting timeout. but I can ping/telnet the DB's cluster ip. So I have tried to use the DB cluster IP in my config file to check if the connection is successful but no luck.

Could someone help me with this ?


Solution

  • This issue was fixed..!

    Create two pods for Application and DB, Earlier when I provide the DB cluster IP in application config file, it was worked.But I was able to telnet 1433

    I have created another K8s cluster in Azure then tried with same setup (provided cluster IP). This time it worked like charm.

    Thanks to @Suresh Vishnoi