Skip to content

Resource usage not being calculated correctly for native sidecar containers #452

@thorweijie

Description

@thorweijie

Current and expected behavior

Current behaviour: aptakube does not add the resources of the native sidecar container (istio-proxy) in node view. For example, it only calculates the cpu request of nginx container (100m)

Image Image

Expected behavior: aptakube should also add the resources of the native sidecar container(istio-proxy) in node view. For example, it should calculate the cpu request of both nginx and istio-proxy containers (100m + 100m = 200m), this can be verified if we check the node using kubectl

kubectl describe node {NODE_IP} | grep nginx-7cc5b48966-742gx
  default                     nginx-7cc5b48966-742gx                                             200m (1%)     3 (18%)      256Mi (0%)       2Gi (3%)         12m

Environment & Operating System

macOS Sequoia 15.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions