Difference between revisions of "Kind: PersistentVolume"

From wikieduonline
Jump to navigation Jump to search
Line 21: Line 21:
 
     path: /tmp
 
     path: /tmp
 
     server: 172.17.0.2
 
     server: 172.17.0.2
 +
 +
 +
[[kind: PersistentVolumeClaim]]
  
  
 
{{K8s PV}}
 
{{K8s PV}}

Revision as of 12:17, 12 January 2024


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


kind: PersistentVolumeClaim


Kubernetes Persistent volumes, kind: PersistentVolume (PV), kind: PersistentVolumeClaim (PVC), access mode (ReadWriteOnce, ReadOnlyMany, ReadWriteMany)

Advertising: