Skip to content

Commit 469b890

Browse files
Xudong Liutengqm
andauthored
Update content/en/docs/concepts/services-networking/service.md
Co-authored-by: Qiming Teng <[email protected]>
1 parent 81b8394 commit 469b890

File tree

1 file changed

+6
-1
lines changed
  • content/en/docs/concepts/services-networking

1 file changed

+6
-1
lines changed

content/en/docs/concepts/services-networking/service.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,12 @@ Starting in v1.21, you can optionally specify the class of a load balancer imple
636636
`LoadBalancer` type of Service by setting the field `spec.loadBalancerClass`.
637637
By default, `spec.loadBalancerClass` is `nil` and a `LoadBalancer` type of Service uses
638638
the cloud provider's default load balancer implementation.
639-
If `spec.loadBalancerClass` is specified, it is assumed that a matching class load balancer implementation is watching for Services and any default load balancer implementation (e.g. cloud providers) will ignore Services that set this field. `spec.loadBalancerClass` can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed.
639+
If `spec.loadBalancerClass` is specified, it is assumed that a load balancer
640+
implementation that matches the specified class is watching for Services.
641+
Any default load balancer implementation (for example, the one provided by
642+
the cloud provider) will ignore Services that have this field set.
643+
`spec.loadBalancerClass` can be set on a Service of type `LoadBalancer` only.
644+
Once set, it cannot be changed.
640645
The value of `spec.loadBalancerClass` must be a label-style identifier, with an optional prefix, e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users.
641646
You must enable the `ServiceLoadBalancerClass` feature gate to use this field.
642647

0 commit comments

Comments
 (0)