gpt4 book ai didi

networking - 如何在2个Kubernetes集群之间配置VPN连接

转载 作者:行者123 更新时间:2023-12-02 11:47:28 26 4
gpt4 key购买 nike

如何在2个Kubernetes集群之间配置VPN连接。

情况是:
-在不同站点上运行的2个kubernetes集群
-2个群集之间的OpenVPN连接
-在两个kubernetes集群中都安装了在单独容器中运行的openvpn。

如何配置kubernetes集群(vpn,路由,防火墙配置),以便使任何kubernetes集群的节点和容器通过VPN连接到其他集群的节点和服务?

谢谢你的答案!

最佳答案

您在Kubernetes中需要的称为federation

Deprecated

Use of Federation v1 is strongly discouraged. Federation V1 never achieved GA status and is no longer under active development. Documentation is for historical purposes only.

For more information, see the intended replacement, Kubernetes Federation v2.


至于在Kubernetes中使用VPN,我建议 Exposing Kubernetes cluster over VPN
它描述了如何将VPN节点连接到kuberentes集群或Kubernetes服务。
您可能也有兴趣阅读有关 Running in Multiple Zones的Kubernetes文档。
Kubernetes multi-cluster networking made simple,它解释了跨多个集群的VPN的不同使用情况,并强烈鼓励使用IPv6代替IPv4。

Why use IPv6? Because “we could assign a — public — IPv6 address to EVERY ATOM ON THE SURFACE OF THE EARTH, and still have enough addresses left to do another 100+ earths” [SOURCE]


最后是 Introducing kEdge: a fresh approach to cross-cluster communication,它看起来更加轻松,并且有助于配置和维护群集之间的VPN服务。

关于networking - 如何在2个Kubernetes集群之间配置VPN连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55510829/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com