Kubernetes无法识别SRV类型URI

编程入门 行业动态 更新时间:2024-10-28 04:20:53
本文介绍了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

本文发布于:2023-11-09 15:23:59,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1572720.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:无法识别   类型   Kubernetes   URI   SRV

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!