是否可以配置多个主节点以更喜欢路由到不同节点
想象一下一个场景,其中我有3种工具节点(A,B,C)和2个主节点(X,Y)作为Kubernetes群集的一部分。每个班级可能都有多个工人节点。是否可以路由流量,以便将到达不同的主节点的流量路由到另一组工人节点。例如,我希望Master Node X将流量路由到A类的工人,并有可能在重负载下未能输入B类,并使主节点Y将流量路由到C类节点,但在需要时也将B用作故障转移。
Imagine a scenario where I have 3 classes of worker node (A,B,C) and 2 master nodes (X,Y) as part of a Kubernetes cluster. There maybe multiple worker nodes of each class. Is it possible to route the traffic such that traffic arriving at the different master nodes is routed to a different set of worker nodes. For example I want master node X to route traffic to workers of class A and potentially fail over to class B under heavy load and for master node Y to route traffic to nodes of class C but also use B as a failover when needed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如评论中正确指出的那样,主节点没有处理流量。它的责任在很高的水平上是观察和维持工人节点中部署的Kubernetes资源的所需状态,并向他们推动任何更改。
话虽如此,是的,可以使用拓扑意识提示:
此功能专门设计用于在多区域环境中处理流量,并具有一系列内置的保障范围以防止终点的过载等情况,区域中的端点不足,等等。
As correctly pointed out in the comments, the traffic is not handled by the master nodes; its responsibility, at a high level, is to observe and maintain the desired state of the Kubernetes resources deployed in the worker nodes, as well as to push any changes to them.
That being said, yes, it is possible to discriminate and send the traffic to different worker nodes using Topology Aware Hints:
This feature is specifically designed to handle traffic in a multi-zone environment and has a series of built-in Safeguards to prevent situations like overload of an endpoint, insufficient endpoints in a zone, etc.