更新TCP负载平衡到GCP上的HTTP负载平衡

发布于 2025-02-06 05:33:07 字数 569 浏览 2 评论 0原文

我在Google Cloud Plataform上使用Kubernetes群集,我想将负载平衡器从“ TCP负载平衡”更改为“ HTTP(S)负载平衡”(第7层)。

当前,有关“ TCP负载平衡”的配置为:

”在此处输入图像描述

用于部署nginx并自动创建加载平衡器,我使用indress-nginx图表( https://github.com/kubernetes/ingress-nginx )。我一直在检查文档,但还没有找到更改负载平衡器层的配置。

我是GCP负载平衡器的初学者。谁能帮助入门?请,如果需要更多信息,我将提供。

I use kubernetes cluster on Google Cloud Plataform and I want to change my load balancer from "TCP load balancing" to "HTTP(S) load balancing" (layer 7).

Currently the configuration about "TCP load balancing" is:

enter image description here

For deploy NGINX and create automatically the load balancer, I use the ingress-nginx chart (https://github.com/kubernetes/ingress-nginx). I've been checking the documentation and haven't found the config for change load balancer layer.

I'm a beginner in GCP load balancer. Can anyone help with getting started? Please, if more information is needed, I will provide it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

花期渐远 2025-02-13 05:33:07

您必须切换负载平衡的方式。我们不会从GCP UI更改负载平衡器类型。因此,您应该创建新的GKE资源。根据您的情况,您必须使用入口资源使外部HTTPS负载平衡。

检查以下文档有关更多信息。

You have to switch the way you’re load balancing. We don't change the load balancer type from the GCP UI. So you should create new gke resources. As per your case you would have to use an ingress resource to have external https load balancing.

Check the following Document for more information.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文