Difference between revisions of "Create a PersistentVolumeClaim"
Jump to navigation
Jump to search
(4 intermediate revisions by the same user not shown) | |||
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 | ||
+ | |||
+ | {{kind: PersistentVolumeClaim}} | ||
+ | |||
+ | == Related == | ||
+ | * [[Kubernetes Persistent Volumes (PV)]] | ||
== See also == | == See also == | ||
+ | * {{PVC}} | ||
* {{Kubernetes storage}} | * {{Kubernetes storage}} | ||
[[Category:K8s]] | [[Category:K8s]] |
Latest revision as of 11:52, 2 February 2024
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
apiVersion: v1 kind: PersistentVolumeClaim metadata: name: your-pvc spec: accessModes: - ReadWriteOnce resources: requests:
Related[edit]
See also[edit]
- 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: