pvc.yml:
apiVersion: v1 kind: PersistentVolumeClaim metadata: name: persistent-storage namespace: staging spec: accessModes: - ReadOnlyMany volumeMode: Filesystem resources: requests: storage: 30Gi storageClassName: standard
Create PVC:
kubectl create -f pvc.yml
Check:
kubectl get pvc -n staging NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE persistent-storage Bound pvc-bd856312-9be4-11e9-bb1d-42010a9c01f3 30Gi ROX standard 17s