From 81b8394561bf8a88f647550f09946c164e34c150 Mon Sep 17 00:00:00 2001 From: Xudong Liu <7lxd@tongji.edu.cn> Date: Sun, 28 Mar 2021 21:35:20 -0700 Subject: [PATCH] Update content/en/docs/concepts/services-networking/service.md Co-authored-by: Qiming Teng --- content/en/docs/concepts/services-networking/service.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content/en/docs/concepts/services-networking/service.md b/content/en/docs/concepts/services-networking/service.md index 3bd6709fa0..05d91e075a 100644 --- a/content/en/docs/concepts/services-networking/service.md +++ b/content/en/docs/concepts/services-networking/service.md @@ -632,7 +632,10 @@ You must enable the `ServiceLBNodePortControl` feature gate to use this field. {{< feature-state for_k8s_version="v1.21" state="alpha" >}} -Starting in v1.21, you can optionally specify class of load balancer implementation for a Service Type=LoadBalancer by setting field `spec.loadBalancerClass` value. By default, `spec.loadBalancerClass` is `nil` and type LoadBalacner Services will use the cloud providers' default load balancer implementation. +Starting in v1.21, you can optionally specify the class of a load balancer implementation for +`LoadBalancer` type of Service by setting the field `spec.loadBalancerClass`. +By default, `spec.loadBalancerClass` is `nil` and a `LoadBalancer` type of Service uses +the cloud provider's default load balancer implementation. 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. 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. You must enable the `ServiceLoadBalancerClass` feature gate to use this field.