如何确定正在使用的 GCP 负载平衡器的确切类型?

How to determine the exact type of GCP load balancer that is being used?

我在 GKE 中有一个 nginx 实例,默认服务为 type: LoadBalancer。与下面的 GCP LB 文档相比,如何查看负载均衡器的确切类型?如果这是代理或直通?

https://cloud.google.com/load-balancing/docs/choosing-load-balancer#summary-of-google-cloud-load-balancers

编辑:示例..我如何确定这两者?

TCP 代理或外部网络TCP/UDP? TCP Proxy是proxy,后者是passthrough

目前,GKE 与 TCP Proxy LB, when you use type: LoadBalancer GCP will provide a Network Load Balancer which is a regional resource that delivers traffic via pass-through 不兼容。

您可以在 here 上查看所有负载均衡器以确定它们创建后的类型。

使用 GKE,根据 YAML 文件定义(和注释),您可以创建 3 types of load balancer

  • 内部 TCP/UDP 负载平衡器(直通)
  • 外部 TCP/UDP 负载平衡器(直通)
  • 外部 HTTP 全局负载平衡器(仅限 HTTP/HTTPS)

所以,不是 TCP 代理负载平衡器。

如果需要,请在 UI 中检查负载平衡器的类型。