Kubernetes 管理 pods 多个应用程序副本之间的流量

Kubernetes manage traffic between pods replicas of several applications

如何管理多个应用程序的 pods 副本之间的流量? 我想得到应用程序A和B的效果

under A-x he always sent requests only to B-x and A-y only to B-y. And that the platforms A-y and B-x do not communicate with each other.

提前感谢您的所有回答。

您可以使用 Network policy 来做到这一点。

This 也是一个不错的 post 关于网络策略。