Kubernetes doesn't recognise SRV type URIs

5/17/2020

Does anyone know if there is a specific way to configure Kubernetes to allow resolution of SRV type URLs (to internet services) from within pods?

Recently had a problem preventing me from connecting to MongoDB Atlas. Found the cause to be the use of SRV type URI for connection, was fixed after using legacy URI for connection (link to description).

Is there some configuration required?

-- Alexander Lock-Achilleos
java
kubernetes
minikube
mongodb
spring-boot

1 Answer

5/18/2020

Some of the images like Alpine does not support the srv strings. Instead if you want to make it run either use the standard connection string or use the images to make your container which have minimum libraries to support the srv string.

-- Techgeek
Source: StackOverflow