简体   繁体   中英

K8s Node routing

We are currently building a k8s instance in AWS. We have a specific user case where we need to route traffic to a specific service on a specific node.

We have managed to get the routing to the sevrice working using ingress rules but we cannot ensure the node. The nodes are create by AWS scaling so the ingress rules would be very dynamic.

It is worth pointing out we are running a daemon set with the service installed on each node.

Our urls look like

ServiceX.NodeX.Domain.com

And our AWS ELB is routing traffic to the specific ec2 instance but then the k8s loadbalancer is doing round robin.

您可以使用nodeport代替ingress和loadbalancer,并在节点前面的ELB中使用Sticky Sessions配置(我改用HAproxy)来处理有状态请求。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM