kube-capacity icon indicating copy to clipboard operation
kube-capacity copied to clipboard

Cpu request limit is wrong

Open peterlai-roboops opened this issue 3 years ago • 3 comments

kube-capacity -n ocsl-dev -p

configuration-server-92-42zwb 250m (1%) 1000m (6%) 750Mi (0%) 1024Mi (0%)

But the actual request in 200m. There are init containers, but none of them are 50m, so i don't understand where its getting the 250m from.

resources: limits: cpu: "1" memory: 1Gi requests: cpu: 200m memory: 750Mi

peterlai-roboops avatar Dec 20 '22 11:12 peterlai-roboops

image So not an issue with the api/v1/pods , that is returning the correct cpu request.

peterlai-roboops avatar Dec 20 '22 12:12 peterlai-roboops

Thanks for reporting this! I've been pretty underwater recently but if anyone has time to fix this I'll try to review a PR ASAP.

robscott avatar Jan 19 '23 06:01 robscott

Can you show deployment manifest ? i have initcontainers but this issue is not reproducing.

cloud-66 avatar Feb 06 '23 15:02 cloud-66