Skip to content

bug: Intel and Gaudi GPU usage tracking missing in pod resource views #9090

@Pranjal6955

Description

@Pranjal6955

Describe the bug

The pod-level resource tracking logic in GetPods does not recognize Intel or Gaudi GPU requests, leading to incomplete usage reporting. While the node inventory correctly identifies these accelerators, the pod views report 0 usage because only NVIDIA and AMD resource names are checked.

Environment

  • OS: Linux
  • KC Version: v0.2.x
  • Kubernetes cluster type: OpenShift / EKS with Intel GPU or Gaudi accelerators.

Steps To Reproduce

  1. Deploy a pod that requests Intel GPUs (e.g., gpu.intel.com/i915: 1) or Gaudi accelerators (habana.ai/gaudi: 1).
  2. Navigate to the Pod Details or Workload view in the Console.
  3. Observe that the "GPU Requested" column or field shows 0, despite the pod having a valid accelerator request.

Expected Behavior

The console should track all supported accelerator types in pods, including Intel (gpu.intel.com/i915) and Habana/Gaudi (habana.ai/gaudi, intel.com/gaudi), to remain consistent with the node-level inventory tracker.

Browser Console / Backend Logs

Want to contribute?

  • I would like to work on this issue.

Additional Context

The bug is located in pkg/k8s/client_resources.go:

// Line 68: Missing Intel/Gaudi resource names
if resourceName == "nvidia.com/gpu" || resourceName == "amd.com/gpu" {
    ci.GPURequested = int(qty.Value())
}

This should be updated to include the additional resource names already supported in client_gpu.go.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions