April 2018
Intermediate to advanced
468 pages
14h 34m
English
Here is the configuration file for an NFS persistent volume:
apiVersion: v1kind: PersistentVolumemetadata: name: pv-1 labels: release: stable capacity: 100Gi spec: capacity: storage: 100Gi volumeMode: Filesystem accessModes: - ReadWriteOnce - ReadOnlyMany persistentVolumeReclaimPolicy: Recycle storageClassName: normal nfs: path: /tmp server: 172.17.0.8
A persistent volume has a spec and metadata that includes the name. Let's focus on the spec here. There are several sections: capacity, volume mode, access modes, reclaim policy, storage class, and the volume type (nfs in the example).
Read now
Unlock full access