tencent cloud

Feedback

Scheduling Pod to Super Node

Last updated: 2022-11-02 16:02:34

    This document describes how to schedule a Pod to a virtual node in a TKE cluster. There are two ways to do that:

    • Auto scaling out
    • Manually schedule

    Auto scaling out

    If the cluster is configured with virtual nodes, the Pod will be scheduled to a virtual node automatically when available node resources are insufficient at the service peak. No need to purchase a server. When service regains stability, Pod resources in the virtual node are released automatically. No server returning is required.

    If Cluster Scaling and virtual node are enabled for the cluster at the same time, Pods will be scheduled to the virtual node first, and the scaling out will not be triggered. If the Pod cannot be scheduled to the virtual node due to the above scheduling limits, the node scaling out will be triggered normally. When the server node resources are sufficient, the cluster will scale in the Pods on the virtual node first.

    Manually schedule

    You can schedule a Pod to a virtual node manually. By default, a virtual node automatically adds taints to lower the scheduling priority. If you want to manually schedule a Pod to a (specified) virtual node, you need to add corresponding tolerations for the Pod. However, not all the Pods can be scheduled to virtual nodes. For more information, see Notes for Scheduling Pod to Virtual Node. For the sake of convenience, you can specify nodeselector in Pod Spec, as shown below:

    spec:    
      nodeSelector:
        node.kubernetes.io/instance-type: eklet
    

    Or specify nodename in Pod Spec, as shown below:

    spec:
      nodeName: $virtual node name
    

    TKE’s control components will judge whether the Pod can be scheduled to a virtual node. If not, the Pod will not be scheduled to the virtual node.

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support