Difference between revisions of "Kubernetes Persistent volumes (PV)"

From wikieduonline
Jump to navigation Jump to search
Line 25: Line 25:
 
     server: 172.17.0.2
 
     server: 172.17.0.2
  
 
+
{{kind: PersitentVolume}}
  
  

Revision as of 11:42, 8 February 2024

TOMERGE: Kubernetes Persistent Volumes (PV)

apiVersion: v1
kind: PersistentVolume
metadata:
  name: pv0003
spec:
  capacity:
    storage: 5Gi
  volumeMode: Filesystem
  accessModes:
    - ReadWriteOnce
  persistentVolumeReclaimPolicy: Recycle
  storageClassName: slow
  mountOptions:
    - hard
    - nfsvers=4.1
  nfs:
    path: /tmp
    server: 172.17.0.2
 apiVersion: v1
kind: PersistentVolume
metadata:
  name: pv0003
spec:
  capacity:
    storage: 5Gi
  volumeMode: Filesystem
  accessModes:
    - ReadWriteOnce
  persistentVolumeReclaimPolicy: Recycle
  storageClassName: slow
  mountOptions:
    - hard
    - nfsvers=4.1
  nfs:
    path: /tmp
    server: 172.17.0.2


Related terms

Related terms

See also

Advertising: