如何访问Kubernetes服务的特定端点

发布于 2025-02-01 12:40:09 字数 111 浏览 3 评论 0原文

在Kubernetes中,为了访问POD或复制POD,我们使用服务。因此,在特定的服务下,有许多具有相同标签的豆荚。我正在寻找的内容如下:

如果我想将请求发送到服务的特定吊舱中,那有什么方法吗?

In Kubernetes in order to access a pod or a replicated pod we use a service. So under a specific service there are a number of pods with the same label. What i am looking for is the following:

If i want to send a request into a specific pod of the service, is any way to do that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笔芯 2025-02-08 12:40:09

我认为,服务的目的是能够使用任何一个POD。如果要连接到特定的POD,则应该为要独立连接到的每个POD都有不同的服务。

I believe that the purpose of the service to to be able to use either pod. If you want to connect to a specific pod, you should have a different service for each pod you want to connect to independently.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文