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

From wikieduonline
Jump to navigation Jump to search
Line 24: Line 24:
 
  [[kubectl apply -f your_new_pvc.yml]]
 
  [[kubectl apply -f your_new_pvc.yml]]
 
  persistentvolumeclaim/myclaim created
 
  persistentvolumeclaim/myclaim created
 +
 +
== Errors ==
 +
* <code>[[Pod has unbound immediate PersistentVolumeClaims]]</code>
  
 
== Related terms ==
 
== Related terms ==
Line 32: Line 35:
 
* <code>[[awsElasticBlockStore]]</code>
 
* <code>[[awsElasticBlockStore]]</code>
 
* <code>[[kubectl get volumesnapshot]]</code>
 
* <code>[[kubectl get volumesnapshot]]</code>
* [[Pod has unbound immediate PersistentVolumeClaims]]
 
 
* [[K8up Kubernetes Backup Operator]]
 
* [[K8up Kubernetes Backup Operator]]
 
* <code>[[kind: Provisioner]]</code>
 
* <code>[[kind: Provisioner]]</code>

Revision as of 16:21, 12 December 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

Errors

Related terms

Activities

See also

Advertising: