Difference between revisions of "Kubernetes Persistent volumes (PV)"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
* https://kubernetes.io/docs/concepts/storage/persistent-volumes/ | * https://kubernetes.io/docs/concepts/storage/persistent-volumes/ | ||
+ | <pre> | ||
+ | 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 | ||
+ | </pre> | ||
Revision as of 12:36, 12 January 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
Related terms
- Understand Kubernetes storage objects
Related terms
- Volumes (Kubernetes)
kind: PersistentVolume
kind: PersistentVolumeClaim
- Kubernetes storage
- Kubernetes Persistent Volumes (PV)
See also
- Kubernetes Persistent volumes,
kind: PersistentVolume (PV), kind: PersistentVolumeClaim (PVC)
, access mode (ReadWriteOnce, ReadOnlyMany, ReadWriteMany
) - Kubernetes Persistent Volume Claim (PVC) (
kind: PersistentVolumeClaim
), Kubernetes Persistent volumes (PV)(kind: PersistentVolume)
,kubectl describe pvc, kubectl get pvc
, ClaimLost, ProvisioningSucceeded, PV access control - Kubernetes storage, storage classes, PersistentVolume (PV), PVC, CSI,
kind: StorageClass, kind: PersistentVolumeClaim, kind: PersistentVolume
,kubectl [ get | describe | edit ] pvc
,volumeClaimTemplates:
,kubectl patch pv
,FailedMount
, Volume Expansion, Volume Cloning, snapshots, ExtraVolumes, NotTriggerScaleUp,volumePVCDataSource, AllowVolumeExpansion
, EKS storage, provisioner, Storage Capacity Tracking,VolumeBinding, VolumeClaimTemplate, storage.k8s.io
, CKA Storage, DoKC, EmptyDir, Volume populators,storageclass.kubernetes.io
Advertising: