Release Notes
Announcements
Release Notes

TKE Service Controller does not use the following nodes as the CLB backend by default:NotReady status (unhealthy nodes).TKE Service Controller can bind nodes in the Unschedulable status. They can be used as the traffic ingress, as they will forward the received traffic in the container network and will not discard it, as shown above.service.kubernetes.io/qcloud-loadbalancer-backends-label annotation, which contains a label selector that allows you to bind matching nodes after they are labeled. This process is synced, which means when a node changes so that it is selected or no longer selected, TKE Service Controller will add or remove the corresponding backend on the CLB instance. For more information, see Labels and Selectors.service.kubernetes.io/qcloud-loadbalancer-backends-label does not select any node, the Service backend will be emptied, interrupting the service. This feature requires cluster node label management.apiVersion: v1kind: Servicemetadata:annotations:service.kubernetes.io/qcloud-loadbalancer-backends-label: "group=access-layer"name: nginx-servicespec:ports:- name: 80-80-noport: 80protocol: TCPtargetPort: 80selector:app: nginxtype: LoadBalancer
service.kubernetes.io/qcloud-loadbalancer-backends-label annotation declares the backend selector, and only cluster nodes labeled group=access-layer will be used as the CLB backends.ExternalTrafficPolicy Service feature. When it is set to Local, traffic will not be forwarded between nodes through NAT, reducing NAT operations and retaining the source IP. NodePort will only forward traffic to the Pod of the current node. The Local mode has the following characteristics:apiVersion: v1kind: Servicemetadata:name: nginx-servicespec:externalTrafficPolicy: Localports:- name: 80-80-noport: 80protocol: TCPtargetPort: 80selector:app: nginxtype: LoadBalancer
service.kubernetes.io/local-svc-only-bind-node-with-pod: "true" annotation. For more information, see Using Source IP.apiVersion: v1kind: Servicemetadata:annotations:service.kubernetes.io/local-svc-only-bind-node-with-pod: "true"name: nginx-servicespec:externalTrafficPolicy: Localports:- name: 80-80-noport: 80protocol: TCPtargetPort: 80selector:app: nginxtype: LoadBalancer
service.cloud.tencent.com/local-svc-weighted-balance: "true" annotation, where the weight of the NodePort backend will be determined by the number of workloads on the node, thus avoiding load unevenness caused by the different numbers of workloads on different nodes. Here, Local weighted balancing must be used in conjunction with Local binding as shown below:apiVersion: v1kind: Servicemetadata:annotations:service.kubernetes.io/local-svc-only-bind-node-with-pod: "true"service.cloud.tencent.com/local-svc-weighted-balance: "true"name: nginx-servicespec:externalTrafficPolicy: Localports:- name: 80-80-noport: 80protocol: TCPtargetPort: 80selector:app: nginxtype: LoadBalancer
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan