< img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=3131724&fmt=gif" />

Assign Pod IP Pools to Projects

This section introduces how to assign pod IP pools to projects.

If a project is assigned to a pod IP pool, when creating workloads and jobs in the project, if a pod IP pool is not specified, the pods in the project will be assigned to the default pod IP pool.

If a project is not assigned to any pod IP pool, i.e., the project is not bound to any pod IP pool, when creating workloads and jobs in the project, if a pod IP pool is not specified, the pods in the project will be assigned to any available pod IP pool.

One IP pool can be assigned to multiple projects, and one project can be bound to multiple IP pools.

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

  1. Log in to the KubeSphere web console with a user who has the Cluster Network Resource Management permission, and access your cluster.

  2. Click Network > Pod IP Pools in the left navigation pane.

  3. Click the name of a pod IP pool in the pod IP pool list to open its details page.

  4. Click Add Project under the Projects tab, select a project from the dropdown list, and then click OK.

  5. Click trash on the right side of the project to unbind the pod IP pool from the project. Click Remove All in the upper right corner to unbind the pod IP pool from all assigned projects.

    After removing a project, the project will no longer be subject to the resource allocation restrictions of the IP pool, and the pods in the project that have already been assigned IP addresses will not be affected.

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.

What’s on this Page