有人知道是否存在一种特定的方法来配置Kubernetes,以允许从Pod内解析SRV类型的URL(到Internet服务)?
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?
最近有一个问题我无法连接到MongoDB Atlas.发现原因是使用SRV类型URI进行连接,在使用旧版URI进行连接后已解决(链接到描述).
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).
是否需要一些配置?
推荐答案像Alpine这样的某些图像不支持srv字符串.相反,如果您想使其运行,请使用标准连接字符串或使用图像来创建具有最少库来支持srv字符串的容器.
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.
更多推荐
Kubernetes无法识别SRV类型URI
发布评论