title: Kubernetes size definitions: What's the difference of "Gi" and "G"?
body: <p>While I explored yaml definitions of Kubernetes templates, I stumbled across different definitions of sizes. First I thought it's about the apiVersions but they are the same. So what is the difference there? Which are right when both are the same?</p>
  
  <p><code>storage: 5G</code> and <code>storage: 5Gi</code></p>
  
  <pre><code>volumeClaimTemplates:
    - metadata:
        name: mongo-persistent-storage
      spec:
        resources:
          requests:
            storage: 2Gi
  </code></pre>
  
  <p>see here in detail: 
  <a href="https://github.com/cvallance/mongo-k8s-sidecar/blob/master/example/StatefulSet/mongo-statefulset.yaml" rel="noreferrer">https://github.com/cvallance/mongo-k8s-sidecar/blob/master/example/StatefulSet/mongo-statefulset.yaml</a></p>
  
  <p>and this one:</p>
  
  <pre><code> volumeClaimTemplates:
   - metadata:
       name: mongo-persistent-storage
     spec:
       resources:
         requests:
           storage: 5G
  </code></pre>
  
  <p>here in detail: <a href="https://github.com/openebs/openebs/blob/master/k8s/demo/mongodb/mongo-statefulset.yml" rel="noreferrer">https://github.com/openebs/openebs/blob/master/k8s/demo/mongodb/mongo-statefulset.yml</a></p>