Edit Node Selection
This section introduces how to edit the automatic node allocation for pod IP pools to automatically match appropriate nodes for the pod IP pool.
When creating a pod IP pool, by default, its IP addresses can be allocated to pods on all nodes. You can set node selectors to restrict that only pods on nodes that meet specific conditions can use the IP addresses of the IP pool.
Prerequisites
You should join a cluster and have the Cluster Network Resource Management permission within the cluster. For more information, refer to "Cluster Members" and "Cluster Roles".
KubeSphere Network should have been installed and enabled.
Steps
Log in to the KubeSphere web console with a user who has the Cluster Network Resource Management permission, and access your cluster.
Click Network > Pod IP Pools in the left navigation pane.
Click on the right side of the pod IP pool you want to operate, and then select Edit YAML from the dropdown list.
Enter the expression under the spec.nodeSelector parameter to filter nodes through custom expressions. For more information about expressions, please refer to Node Selector.
Attention |
---|
|
Feedback
Was this page Helpful?
Receive the latest news, articles and updates from KubeSphere
Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.