I have an EKS cluster running a Python app. The app depends on Azure cognitive services API. The issue is that the app is not able to resolve the API endpoint. Name resolution using dig on the pod works but socket.gethostbyname() for the same name fails. Python is able to resolve other names like google.com. There is no issue with dns on my local machine.
socket.gethostbyname()
1.4m articles
1.4m replys
5 comments
56.9k users