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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions