带代理协议的GCP TCP负载平衡器
我正在尝试弄清楚如何在GKE中启用代理协议标题。
通常,您可以使用gcloud:
gcloud compute target-ssl-proxies update my-ssl-lb-target-proxy \
--proxy-header=PROXY_V1
但GKE并未将其列出为注释:
https://cloud.google.com/kubernetes-engine/docs/docs/how-to/service-to/service-parameters
没有任何支持吗? :(
谢谢
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您在GKE中创建类型“ LoadBalancer”的服务时,它使用 noflowl noreferrer“> network load load load allancer < /a>用于外部服务和内部tcp/udp load load Balancer 服务。
您也可以使用TCP和/或SSL代理负载平衡器,但涉及一些手动配置。您将需要创建
要创建独立的neg,您可以创建类型clusterip的服务并使用一个neg注释:
然后,您将neg与TCP或SSL代理LB使用的后端服务相关联,例如
When you create a Service of type "LoadBalancer" in GKE, it uses a Network Load Balancer for external services and an Internal TCP/UDP Load Balancer for internal services.
You can use TCP and/or SSL Proxy load balancers as well, but it involves a bit of manual configuration. You will need to create a Standalone NEG and then associate that as the backend of a TCP or SSL Proxy LB.
To create a Standalone NEG, you create a Service of type ClusterIP and use a neg annotation:
You'd then associate the NEG with the backend service used by your TCP or SSL Proxy LB, for example