nginx - 使用 Parallels RAS 或 NGINX 进行 kubernetes 负载平衡
问题描述
也许我在追求在本地网络上创建尽可能接近真实的 Kubernetes 设置方面还有很长的路要走:-)
是否可以使用 Parallels(Desktop) RAS 作为 Kubernetes 的负载均衡器?
1. I am running a master node in Ubuntu on Parallels Desktop
2. And some worker nodes also in Parallels Desktop
两者都使用桥接网络。
如果可以有一个包含 LoadBalancer 的设置,那就太酷了。
解决方案
您可以使用MetalLB、KubeVIP或Keepalived-operator(使用 HAProxy)。我玩过 KubeVIP,但现在在我基于 RasberryPi 的 Kubernetes 集群中使用 MetalLB L2。如果您有一个支持该协议的路由器(例如 Unifi),MetalLB BGP 会更好。以下参考资料可能会有所帮助:
推荐阅读
- python - \n 循环后
- ios - Obj-C - UITextField 中的地址自动完成/搜索?
- java - 当程序运行其代码行时,有问题的数据数组在 Java 中使应用程序崩溃
- database - 在 MongoDB 中对集合的子组进行排序和限制的最佳方法是什么?
- javascript - (深色模式)添加“深色主题”后如何更改背景?
- shopify - 如何抓取一个产品属于哪个集合?
- python - Python日期转换脚本
- reactjs - 在反应 js 中映射
- python - 创建文本文件 Python 不工作 - Raspberry Pi
- java - GridView 没有填充图像