There can be scenarios where organizations may require application teams to "share" clusters for cost efficiency purposes. Even after sharing clusters across projects, administration of Kubernetes namespaces can still be an operational challenge. For example, it can be a cost/burden for administrators to quickly respond to requests from application teams for scenarios like
- Need a new namespace
- Need to update resource quotas on existing namespace
- Need to delete an existing namespace
A commonly used term for this soft multitenancy model is Workspace as a Service.
A workspace admin can only see resources in namespaces created and managed by them. They cannot see/access namespaces on the cluster that are not managed by them.
Organizations can assign the "Workspace Admin" role to identified users in application teams to offload namespace administration and quota management responsibilities.
Developers and application owners can be assigned to specific namespaces that are created and managed by the Workspace Admin.
Administrators can allocate a "total quota" on the shared cluster that will span across all the namespaces managed by the Workspace administrator. The sum of resources across ALL namespaces needs to be less/equal to the specified quota.
At any time, workspace admins can login and view their "total quota" and "utilization" against the quota. For example, in the utilization table for the project, the assigned quota for CPUs is "300 mCPUs" and current utilization is "50 mCPUs"