<p>I have a persistentVolumeClaim fix (50go) and I wouldlike to divise this volume in 3 parts :</p>
<pre><code>volumes:
        - name: part1
          persistentVolumeClaim:
            claimName: myDisk
        - name: part2
          persistentVolumeClaim:
            claimName: myDisk
        - name: part3
          persistentVolumeClaim:
            claimName: myDisk
</code></pre>
<p>Can I edit in this config file like : storage for part1 = 10go or part2 = 30go ?</p>

jerome12
<p>Persistent volumes or claims can’t be divided. Also, there is a 1:1 relationship between Volumes and Claims. You can, however, create multiple PVs/PVCs from a storage classes. See the following example for reference. I am creating three PVCs from one storage class. It will also create relevant PVs for me as well. In case of <code>hostpath</code> SC, it will use <code>/var/lib/docker</code> folder for storage by default. If you want to control the path, you will have to create the PVs yourself as well.</p>
<pre class="lang-yaml prettyprint-override"><code>---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: part1
spec:
  storageClassName: hostpath
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 10Mi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: part2
spec:
  storageClassName: hostpath
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 20Mi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: part3
spec:
  storageClassName: hostpath
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 20Mi
</code></pre>
