Difference between revisions of "Kubernetes Persistent Volume Claim (PVC)"

From wikieduonline
Jump to navigation Jump to search
Line 42: Line 42:
 
== Activities ==
 
== Activities ==
 
* [[CKA v1.23]]: [[Understand persistent volume claims primitive]]
 
* [[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]]
 
* [[Create a PersistentVolumeClaim]]
 
* Read https://cloud.google.com/kubernetes-engine/docs/concepts/persistent-volumes
 
* Read https://cloud.google.com/kubernetes-engine/docs/concepts/persistent-volumes

Revision as of 14:42, 28 November 2023

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.
ProvisioningFailed

PVC types

Examples

Volume expansion

kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: myclaim
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 1Gi # specify new size here
kubectl apply -f your_new_pvc.yml
persistentvolumeclaim/myclaim created

Related terms

Activities

See also

Advertising: