Difference between revisions of "Kind: PersistentVolumeClaim"
Jump to navigation
Jump to search
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
[[Kubernetes Persistent Volume Claim (PVC)]] | [[Kubernetes Persistent Volume Claim (PVC)]] | ||
+ | * https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#persistentvolumeclaim-v1-core | ||
+ | * https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#persistentvolumeclaimspec-v1-core | ||
+ | == Examples == | ||
+ | |||
+ | {{kind: PersistentVolumeClaim}} | ||
+ | |||
+ | {{kind: PersistentVolumeClaim with class}} | ||
+ | |||
+ | |||
+ | |||
+ | Including PV name: | ||
+ | apiVersion: "v1" | ||
+ | kind: "PersistentVolumeClaim" | ||
+ | metadata: | ||
+ | name: "claimapp80" | ||
+ | spec: | ||
+ | accessModes: | ||
+ | - "ReadWriteOnce" | ||
+ | resources: | ||
+ | requests: | ||
+ | storage: "1Gi" | ||
+ | [[volumeName]]: "app080" | ||
+ | |||
+ | [[Expansion]]: | ||
{{PVC expansion}} | {{PVC expansion}} | ||
− | + | * [[StorageClassName]] | |
* <code>[[VolumeClaimTemplates:]]</code> | * <code>[[VolumeClaimTemplates:]]</code> | ||
Line 19: | Line 43: | ||
validation off with [[--validate=false]] | validation off with [[--validate=false]] | ||
+ | |||
+ | |||
+ | |||
+ | <code>[[0/3 nodes are available: 3 persistentvolumeclaim "yourstorage" bound to non-existent persistentvolume]]</code> | ||
== Related == | == Related == | ||
Line 25: | Line 53: | ||
* <code>[[kubectl describe pvc my grafana pvc volume]]</code> | * <code>[[kubectl describe pvc my grafana pvc volume]]</code> | ||
* [[Kubernetes Finalizers]] | * [[Kubernetes Finalizers]] | ||
− | * [[ | + | * <code>[[StorageClassName]]</code> |
== See also == | == See also == |
Latest revision as of 12:27, 8 February 2024
Kubernetes Persistent Volume Claim (PVC)
- https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#persistentvolumeclaim-v1-core
- https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#persistentvolumeclaimspec-v1-core
Contents
Examples[edit]
apiVersion: v1 kind: PersistentVolumeClaim metadata: name: your-pvc spec: accessModes: - ReadWriteOnce resources: requests:
apiVersion: v1 kind: PersistentVolumeClaim metadata: name: xfs-pvc spec: storageClassName: xfs-class accessModes: - ReadWriteOnce resources: requests:
Including PV name:
apiVersion: "v1" kind: "PersistentVolumeClaim" metadata: name: "claimapp80" spec: accessModes: - "ReadWriteOnce" resources: requests: storage: "1Gi" volumeName: "app080"
kind: PersistentVolumeClaim apiVersion: v1 metadata: name: myclaim spec: accessModes: - ReadWriteOnce resources: requests: storage: 1Gi # specify new size here
Errors[edit]
error: error validating "yourfile": error validating data: [ ValidationError(PersistentVolumeClaim.metadata.finalizers): invalid type for io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta.finalizers: got "string", expected "array", ValidationError(PersistentVolumeClaim): unknown field "name" in io.k8s.api.core.v1.PersistentVolumeClaim ]; if you choose to ignore these errors, turn validation off with --validate=false
0/3 nodes are available: 3 persistentvolumeclaim "yourstorage" bound to non-existent persistentvolume
Related[edit]
- CSI Volume Cloning
kubectl describe pvc
kubectl describe pvc my grafana pvc volume
- Kubernetes Finalizers
StorageClassName
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: