Difference between revisions of "Kind: PersistentVolume"

From wikieduonline
Jump to navigation Jump to search
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{lc}}
 +
* https://kubernetes.io/docs/concepts/storage/persistent-volumes/
 +
* https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#persistentvolume-v1-core
 +
* https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#persistentvolumespec-v1-core
 +
 +
{{kind: PersitentVolume}}
 +
  
* https://kubernetes.io/docs/concepts/storage/persistent-volumes/
+
{{kind: PersitentVolume with hostPath}}
  
 +
== Related ==
 +
* <code>[[kind: PersistentVolumeClaim]]</code>
 +
* <code>[[efs]]</code>
 +
* <code>[[kubectl describe pv]]</code>
  
 +
== See also ==
 +
* {{K8s PV}}
  
{{K8s PV}}
+
[[Category:Ks8]]

Latest revision as of 12:27, 8 February 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


 apiVersion: v1
kind: PersistentVolume
metadata:
  name: task-pv-volume
  labels:
    type: local
spec:
  storageClassName: manual
  capacity:
    storage: 10Gi
  accessModes:
    - ReadWriteOnce
  hostPath:
    path: "/mnt/data"

Related[edit]

See also[edit]

Advertising: