Open exp0nge opened 4 hours ago
This issue is currently awaiting triage.
If kube-state-metrics contributors determine this is a relevant issue, they will accept it by applying the triage/accepted
label and provide further guidance.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
What happened:
When querying
kubectl get --raw /api/v1/nodes/<node-ip>/proxy/stats/summary
, the capacity bytes returned for PVCs are not what are shown in tools like k9s which therefore tell me that tooling built around this endpoint will show incorrect values.What you expected to happen:
PVC capacity and other metrics show the correct sizes
How to reproduce it (as minimally and precisely as possible):
Take capacity bytes, convert to GiB/MiB, compare with k9s or other tooling for
spec.resources.requests.storage
I used:
kubectl get pvc name-pvc -o json
to get the spec requests to compare against (which was larger by 125 MiB):Anything else we need to know?:
Environment:
kubectl version
): v1.27.14