简体   繁体   English

Kubernetes 和 UDP 负载均衡器和基于 IP 的粘性会话

[英]Kubernetes with an UDP loadbalancer with sticky sessions based on IP

I'm trying to deploy an UDP-based application on kubernetes, but I'm having troubles finding a suitable cloud provider that has an UDP loadbalancer with IP-based sticky sessions.我正在尝试在 kubernetes 上部署基于 UDP 的应用程序,但我无法找到合适的云提供商,该云提供商具有 UDP 负载均衡器和基于 IP 的粘性会话。

I have tried using DigitalOcean Kubernetes Service (DOKS) but they don't support UDP loadbalancers.我曾尝试使用 DigitalOcean Kubernetes 服务(DOKS),但它们不支持 UDP 负载平衡器。

EKS (AWS' kubernetes service) provides UDP support with NLB for example, but they don't seem to have sticky sessions on that type of loadbalancer, only on the classic LB.例如,EKS(AWS 的 kubernetes 服务)通过 NLB 提供 UDP 支持,但它们似乎在这种类型的负载均衡器上没有粘性会话,仅在经典 LB 上。

Is there another cloud provider (I'm thinking of GCE or Azure) that provides my required functionalities out of the box?是否有其他云提供商(我正在考虑 GCE 或 Azure)提供我所需的开箱即用功能?

I'm asking this here to know if anyone else has had the same problem and maybe has already tried various solutions, and has already found the perfect fit.我在这里询问是否有其他人遇到过同样的问题,并且可能已经尝试过各种解决方案,并且已经找到了最合适的解决方案。

I know in Nginx Ingress Controller (which I know works with AWS and NLB with UDP support as you stated) can expose UDP services and supports sticky sessions . I know in Nginx Ingress Controller (which I know works with AWS and NLB with UDP support as you stated) can expose UDP services and supports sticky sessions . I have not done this in AWS or any other cloud provider, but I have with similar use cases on bare-metal.我没有在 AWS 或任何其他云提供商中这样做过,但我在裸机上有类似的用例。

As @jordanm posted, the answer was to apply the stickiness parameter through the ec2 console.正如@jordanm 发布的那样,答案是通过 ec2 控制台应用粘性参数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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