Kubernetes无法识别SRV类型URI [英] Kubernetes doesn't recognise SRV type URIs

查看:76
本文介绍了Kubernetes无法识别SRV类型URI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道是否存在一种特定的方法来配置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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆