apiVersion: "v1"
kind: "PersistentVolume"
metadata:
name: "pv0001" (1)
spec:
capacity:
storage: "5Gi" (2)
accessModes:
- "ReadWriteOnce"
gcePersistentDisk: (3)
fsType: "ext4" (4)
pdName: "pd-disk-1" (5)
1 | The name of the volume. This will be how it is identified via persistent volume claims or from pods. |
2 | The amount of storage allocated to this volume. |
3 | This defines the volume type being used, in this case the gcePersistentDisk plug-in. |
4 | File system type to mount. |
5 | This is the GCE Persistent Disk volume that will be used. |