# How kubernetes calculate the acutal capacity of describe nodes?

**URL:** <https://discuss.kubernetes.io/t/how-kubernetes-calculate-the-acutal-capacity-of-describe-nodes/8465>\
**Category:** General Discussions\
**Created:** [October 25, 2019, 6:17am UTC](https://discuss.kubernetes.io/t/how-kubernetes-calculate-the-acutal-capacity-of-describe-nodes/8465 "2019-10-25T06:17:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![UDIT\_JOSHI](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/udit_joshi/32/3968_2.png) [@UDIT\_JOSHI](https://discuss.kubernetes.io/u/UDIT_JOSHI)\
**Post date:** [October 25, 2019, 6:17am UTC](https://discuss.kubernetes.io/t/how-kubernetes-calculate-the-acutal-capacity-of-describe-nodes/8465/1 "2019-10-25T06:17:32Z")

</div>

When I run the **kubectl describe nodes** command  
it shows me the output like

```
Capacity:
 cpu: 2
 ephemeral-storage: 102350Mi
 hugepages-2Mi: 0
 memory: 4266368Ki
 pods: 110

```

Some times it shows the storage and memory information in **Ki** and sometime in **Mi**  
I want to know at what threshold value it will convert Ki to Mi and Gi automatically

I would be pleased if you share me the actual code of unit conversion on Github
