Kubernetes doesn't recognise SRV type URIs

心已入冬 提交于 2020-06-01 05:13:26

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/61853511/kubernetes-doesnt-recognise-srv-type-uris

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!