You can use the following annotations to configure Services so as to enrich CLB capabilities.
apiVersion: v1
kind: Service
metadata:
annotations:
service.kubernetes.io/tke-existed-lbid: lb-6swtxxxx
name: test
........
Note:
This is a read-only annotation that provides the LoadBalanceId referenced by the current Service.
Note:
This annotation is used to specify the creation of a private-network CLB, and its value indicates the subnet ID.
Use case:service.kubernetes.io/qcloud-loadbalancer-internal-subnetid: subnet-xxxxxxxx
Note:
When you use an existing CLB, note that different ways of use have different impacts on Tencent Cloud labels.
Use case:
For usage details, see Service Using an Existing CLB.
Note:
In Service Local mode, only nodes with pods are bound.
Use case:
For usage details, see Service Local Mode.
Note:
service.kubernetes.io/local-svc-only-bind-node-with-pod
.Use case:
For usage details, see Service Local Mode.
Note:
This annotation is used to specify a label for setting the nodes to be bound with the CLB backend.
Use case:
For usage details, see Specifying the Access-Layer Backend.
Note:
Adopt direct connection between the CLB and pods.
Use case:
For usage details, see Using Services with LoadBalancer Directly Connected to Pods.
Note:
Configure the CLB through tke-service-config.
Use case:
For usage details, see Service CLB Configuration.
Note:
This annotation can be used to automatically create TkeServiceConfig.
Use case:
For usage details, see Associated Actions Between Service and TkeServiceConfig.
Note:
This is a read-only annotation. During the creation of a NAT64 IPv6 CLB, the CLB IPv6 address will be displayed in the annotation.
Use case:service.kubernetes.io/loadbalance-nat-ipv6: "2402:4e00:1402:7200:0:9223:5842:2a44"
Note:
Note:
Except in special circumstances, we do not recommend using Classic CLBs because they are no longer upgrades, will soon be discontinued, and lack many features.
Note:
You can use this annotation to configure TCP, UDP, TCP SSL, HTTP, or HTTPS for the specified listening port.
Use case:
For usage details, see Service Extension Protocol.
Note:
Refer to Creating a CLB Instance to add custom parameters for creating a CLB instance.
Use case:
Was this page helpful?