apiVersion: "v1"
kind: "PersistentVolume"
metadata:
name: "pv0001" (1)
spec:
capacity:
storage: "5Gi" (2)
accessModes:
- "ReadWriteOnce"
awsElasticBlockStore: (3)
fsType: "ext4" (4)
volumeID: "vol-f37a03aa" (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 awsElasticBlockStore plug-in. |
4 | File system type to mount. |
5 | This is the AWS volume that will be used. |