Difference between revisions of "Kind: PersistentVolumeClaim"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
* <code>[[kubectl apply -f your_new_pvc.yml]]</code> | * <code>[[kubectl apply -f your_new_pvc.yml]]</code> | ||
+ | |||
+ | == Errors == | ||
+ | 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]] | ||
== Related == | == Related == |
Revision as of 11:01, 12 January 2024
Kubernetes Persistent Volume Claim (PVC)
kind: PersistentVolumeClaim apiVersion: v1 metadata: name: myclaim spec: accessModes: - ReadWriteOnce resources: requests: storage: 1Gi # specify new size here
Errors
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
Related
See also
- 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: