Difference between revisions of "Kind: PersistentVolume"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
* https://kubernetes.io/docs/concepts/storage/persistent-volumes/ | * https://kubernetes.io/docs/concepts/storage/persistent-volumes/ | ||
+ | |||
+ | 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 | ||
{{K8s PV}} | {{K8s PV}} |
Revision as of 12:16, 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
Kubernetes Persistent volumes, kind: PersistentVolume (PV), kind: PersistentVolumeClaim (PVC)
, access mode (ReadWriteOnce, ReadOnlyMany, ReadWriteMany
)
Advertising: