[英]What is the replacement for the deprecated loadBalancerIP attribute in Services
In the ServiceSpec documentation, the loadBalancerIP attribute is deprecated.在ServiceSpec文档中,不推荐使用 loadBalancerIP 属性。 The documentation invites users of Kubernetes 1.24 to use implementation specific annotations.
该文档邀请 Kubernetes 1.24 的用户使用特定于实现的注释。 I was wondering what is the plan for Load Balancers when using GKE, since the documentation still only gives the option of using the loadBalancerIP attribute (Ref: https://cloud.google.com/kubernetes-engine/docs/concepts/service-load-balancer-parameters#spd-static-ip ).
我想知道使用 GKE 时负载均衡器的计划是什么,因为文档仍然只提供了使用 loadBalancerIP 属性的选项(参考: https://cloud.google.com/kubernetes-engine/docs/concepts/service-负载平衡器参数#spd-static-ip )。
Here is the discussion on the k8s github about what's going to happen to that field [1]这是关于 k8s github 的讨论,关于该领域将会发生什么[1]
My understanding from reading the conversation and the documentation you pointed out is that there is a consensus that the field needs to go away because it doesn't support dual-stack.通过阅读对话和您指出的文档,我的理解是,该领域需要 go 离开,因为它不支持双堆栈。 But for now and until cloud providers have an alternative (via annotation) to setting a static LB IP.
但是现在和直到云提供商有替代方法(通过注释)来设置 static LB IP。 That field will remain and will continue to work.
该领域将继续存在并将继续发挥作用。
We (GCP) don't have that alternative yet.我们(GCP)还没有那个选择。 So for now you continue using that field until we have it implemented.
因此,现在您继续使用该字段,直到我们实现它为止。 In any case it will be mentioned in the GKE release notes
无论如何,它都会在 GKE 发行说明中提及
[1] https://github.com/kubernetes/enhancements/pull/1992 [1] https://github.com/kubernetes/enhancements/pull/1992
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.