After you enable virtual node scheduling policies, applications in your ACK cluster can use native Kubernetes pod affinity, topology spread constraints, or node affinity to improve availability and reduce latency.
Prerequisites
An ACK managed Pro cluster that runs Kubernetes 1.22 or later. For more information, see Create an ACK managed cluster, and Manually upgrade a cluster.
Usage notes
-
Pod anti-affinity configured against other pods can prevent the pod from being scheduled. Use this feature with caution.
-
Pod anti-affinity configured against virtual nodes can prevent the pod from being scheduled. Verify the configuration before you submit the pod.
-
During pod scheduling, the system queries inventory and updates the cluster status. Compared with scheduling when this feature is disabled, each pod takes about 1 second longer to process. The maximum concurrent scheduling throughput is currently about 300 pods per second. If you require high pod scheduling speed and concurrent throughput, enable this feature with caution.
Step 1: Verify that add-ons are installed and meet version requirements
Enabling virtual node scheduling policies depends on two add-ons: Kube Scheduler and ACK Virtual Node. Both add-ons must meet the version requirements. Follow these steps to verify that the add-ons are installed and to check their versions.
-
Log on to the ACK console. In the left navigation pane, click Clusters.
-
On the Clusters page, click the name of your cluster. In the left navigation pane, click Components and Add-ons .
-
In the Core Components section, verify that the following add-ons are installed and that their versions meet the requirements. If they do not, click Install or Upgrade in the lower-right corner of the card.
-
Kube Scheduler: 5.9 or later
-
ACK Virtual Node: v2.10.0 or later
-
Step 2: Verify that virtual node scheduling is enabled
-
Click Configuration in the lower-right corner of the Kube Scheduler card.
-
Verify that Enable virtual node scheduling is selected, and click OK.