Skip to content

Add GPU quota and resource consumption display #7977

@itsBaivab

Description

@itsBaivab

What

Add GPU as a supported resource type in the KKP dashboard, alongside the existing CPU, Memory and Storage fields, for both quota configuration and usage display.

Why

The backend now supports GPU quota tracking and enforcement (kubermatic/kubermatic#15699, closes kubermatic/kubermatic#15686, part of kubermatic/kubermatic#13888). The ResourceDetails API type has a new gpu field in spec.quota, status.globalUsage, and status.localUsage. The dashboard needs to expose this so admins can actually set and monitor GPU quotas.

Changes needed

Admin — Resource Quota panel

  • Add a GPU input field when creating or editing a project resource quota (alongside CPU, Memory, Storage)
  • Display the GPU quota limit in the quota overview table

Resource consumption view

  • Show current GPU usage (status.globalUsage.gpu) alongside CPU/Memory/Storage
  • Show GPU usage as a percentage of the set quota (e.g. 4/8)

References

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.sig/apiDenotes a PR or issue as being assigned to SIG API.sig/uiDenotes a PR or issue as being assigned to SIG UI.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions