From f11ffddab64e0b6c73350545617852211123b559 Mon Sep 17 00:00:00 2001 From: yunxji <50287034+yunxji@users.noreply.github.com> Date: Sat, 30 Nov 2019 10:45:03 +0800 Subject: [PATCH] Updata_service.md (#17834) * Modify document format. * Update cloud-controller.md Add content about Tencent cloud providers. * Update cloud-providers.md Add content about Tencent cloud providers. * Update service.md Added some TKE Service annotations * Update service.md Content optimization based on reviewers' recommendations. * Update service.md * Update service.md Optimize the content of Line 902-903. * Update service.md --- .../concepts/services-networking/service.md | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/content/en/docs/concepts/services-networking/service.md b/content/en/docs/concepts/services-networking/service.md index ed8be0d894..36a2c59359 100644 --- a/content/en/docs/concepts/services-networking/service.md +++ b/content/en/docs/concepts/services-networking/service.md @@ -634,6 +634,15 @@ metadata: [...] ``` {{% /tab %}} +{{% tab name="Tencent Cloud" %}} +```yaml +[...] +metadata: + annotations: + service.kubernetes.io/qcloud-loadbalancer-internal-subnetid: subnet-xxxxx +[...] +``` +{{% /tab %}} {{< /tabs >}} @@ -870,6 +879,42 @@ in those modified security groups. {{< /note >}} +#### Other CLB annotations on Tencent Kubernetes Engine (TKE) + +There are other annotations for managing Cloud Load Balancers on TKE as shown below. + +```yaml + metadata: + name: my-service + annotations: + # Bind Loadbalancers with speicfied nodes + service.kubernetes.io/qcloud-loadbalancer-backends-label: key in (value1, value2) + + # ID of an existing load balancer + service.kubernetes.io/tke-existed-lbid:lb-6swtxxxx + + # Custom parameters for the load balancer (LB), does not support modification of LB type yet + service.kubernetes.io/service.extensiveParameters: "" + + # Custom parameters for the LB listener + service.kubernetes.io/service.listenerParameters: "" + + # Specifies the type of Load balancer; + # valid values: classic (Classic Cloud Load Balancer) or application (Application Cloud Load Balancer) + service.kubernetes.io/loadbalance-type: xxxxx + + # Specifies the public network bandwidth billing method; + # valid values: TRAFFIC_POSTPAID_BY_HOUR(bill-by-traffic) and BANDWIDTH_POSTPAID_BY_HOUR (bill-by-bandwidth). + service.kubernetes.io/qcloud-loadbalancer-internet-charge-type: xxxxxx + + # Specifies the bandwidth value (value range: [1,2000] Mbps). + service.kubernetes.io/qcloud-loadbalancer-internet-max-bandwidth-out: "10" + + # When this annotation is set,the loadbalancers will only register nodes + # with pod running on it, otherwise all nodes will be registered. + service.kubernetes.io/local-svc-only-bind-node-with-pod: true +``` + ### Type ExternalName {#externalname} Services of type ExternalName map a Service to a DNS name, not to a typical selector such as