Difference between revisions of "Kubernetes Persistent Volume Claim (PVC)"
Jump to navigation
Jump to search
Line 27: | Line 27: | ||
* [[K8up]] | * [[K8up]] | ||
* <code>[[kind: Provisioner]]</code> | * <code>[[kind: Provisioner]]</code> | ||
+ | * <code>[[volumes:]]</code> | ||
== Activities == | == Activities == |
Revision as of 09:12, 2 November 2022
kubectl get pvc
kubectl get pvc -o yaml
kubectl describe pvc mysql-pv-claim
kubectl describe pvc grafana
kind: PersistentVolumeClaim kind: PersistentVolume kind: StorageClass
error: persistentvolumeclaims "your-elasticsearch-master-0" could not be patched: persistentvolumeclaims "your-elasticsearch-master-0" is forbidden: only dynamically provisioned pvc can be resized and the storageclass that provisions the pvc must support resize.
PVC types
gcePersistentDisk
- Cinder (OpenStack)
glusterfs
- rbd - Ceph RBD
- Azure File
- Azure Disk
- Portworx
- FlexVolumes
- Container Storage Interface (CSI)
Examples
kind: PersistentVolumeClaim apiVersion: v1 metadata: name: myclaim spec: accessModes: - ReadWriteOnce resources: requests: storage: 1Gi # specify new size here
Related terms
kind: PersistentVolume
kind: StorageClass
kubectl describe deployment | grep PersistentVolumeClaim
aws ec2 describe-volumes | grep -A1 Name
awsElasticBlockStore
kubectl get volumesnapshot
- Pod has unbound immediate PersistentVolumeClaims
- K8up
kind: Provisioner
volumes:
Activities
- CKA v1.23: Understand persistent volume claims primitive
- CKA v1.18: Understand persistent volumes and know how to create them
- CKA v1.15: Understand PersistentVolumeClaims (PVC) for storage
- Create a PersistentVolumeClaim
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: