Difference between revisions of "Create a PersistentVolumeClaim"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
pd-xfs-pvc.yaml | pd-xfs-pvc.yaml | ||
− | + | ||
− | apiVersion: v1 | + | apiVersion: v1 |
− | kind: PersistentVolumeClaim | + | [[kind: PersistentVolumeClaim]] |
− | metadata: | + | metadata: |
− | + | name: xfs-pvc | |
− | spec: | + | spec: |
− | + | [[storageClassName]]: xfs-class | |
− | + | accessModes: | |
− | + | - ReadWriteOnce | |
− | + | resources: | |
− | + | requests: | |
− | + | storage: 10Gi | |
− | |||
kubectl apply -f pd-xfs-pvc.yaml | kubectl apply -f pd-xfs-pvc.yaml |
Revision as of 17:46, 28 November 2023
pd-xfs-pvc.yaml
apiVersion: v1 kind: PersistentVolumeClaim metadata: name: xfs-pvc spec: storageClassName: xfs-class accessModes: - ReadWriteOnce resources: requests: storage: 10Gi
kubectl apply -f pd-xfs-pvc.yaml
See also
- 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: