Workspace Quotas

Workspace quotas are used to control the total resource usage of all projects and DevOps projects in a workspace. Similar to project quotas, workspace quotas contain requests and limits of CPU and memory. Requests make sure projects in the workspace can get the resources they needs as they are specifically guaranteed and reserved. On the contrary, limits ensure that the resource usage of all projects in the workspace can never go above a certain value.

In a multi-cluster architecture, as you need to assign one or multiple clusters to a workspace, you can decide the amount of resources that can be used by the workspace on different clusters.

This tutorial demonstrates how to manage resource quotas for a workspace.

Prerequisites

You have an available workspace and an account (ws-manager). The account must have the workspaces-manager role at the platform level. For more information, see Create Workspaces, Projects, Accounts and Roles.

Set Workspace Quotas

  1. Log in to the KubeSphere web console as ws-manager and go to a workspace.

  2. Navigate to Quota Management under Workspace Settings.

  3. The Quota Management page lists all the available clusters assigned to the workspace and their respective requests and limits of CPU and memory. Click Edit Quota on the right of a cluster.

  4. In the dialog that appears, you can see that KubeSphere does not set any requests or limits for the workspace by default. To set requests and limits to control CPU and memory resources, use the slider to move to a desired value or enter numbers directly. Leaving a field blank means you do not set any requests or limits.

    edit-workspace-quotas

    Note

    The limit can never be lower than the request.
  5. Click OK to finish setting quotas.

See Also

Project Quotas

Container Limit Ranges


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.