Kubernetes-Pod到Pod的通信协议 [英] Kubernetes - pod-to-pod communication protocol

查看:125
本文介绍了Kubernetes-Pod到Pod的通信协议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于Pod到Pod的通信的问题基本上说,服务将帮助查找实际的Pod以进行通信.

This question on pod-to-pod communication basically says that Services will help look-up the actual pod for communication.

摘录自答案

您需要创建一个服务来暴露Pod的端口,然后只需要使用服务名称,kube-dns就会解析Pod的IP地址

You need to create a Service to expose the Pod's port and then you just need to use the Service name and kube-dns will resolve the Pod's IP address

我不清楚豆荚之间的通信协议是什么.是HTTP(S)吗?我可以使用AMQP吗? gRPC?

I am not clear as to what is the communication protocol between the pods. Is it HTTP(S)? Can I use AMQP? gRPC?

推荐答案

它是TCP/IP中的基本IP.

It is basic IP in the TCP/IP.

因此,如果在吊舱中安装AMQP,它将使用kubernetes提供的TCP/IP解析主机和IP等以提供其AMQP.

Therefore, if you install an AMQP in the pod, it will use the TCP/IP that kubernetes is providing to resolve host and IP etc to provide its AMQP.

如果设置了一个tomcat,它将使用基础的TCP/IP提供其HTTP.

If you set up a tomcat, it will use the underlying TCP/IP to provide its HTTP(s).

我希望它能澄清.

这篇关于Kubernetes-Pod到Pod的通信协议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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