apiVersion: v1
kind: PersistentVolume
metadata:
name: gluster-volume
labels: (1)
storage-tier: gold
aws-availability-zone: us-east-1
spec:
capacity:
storage: 2Gi
accessModes:
- ReadWriteMany
glusterfs:
endpoints: glusterfs-cluster (2)
path: myVol1
readOnly: false
persistentVolumeReclaimPolicy: Retain
1 | Use labels to identify common attributes or characteristics shared among
volumes. In this case, we defined the Gluster volume to have a custom attribute
(key) named storage-tier with a value of gold assigned. A claim will be
able to select a PV with storage-tier=gold to match this PV. |
2 | Endpoints define the Gluster trusted pool and are discussed below. |