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

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 35: Line 35:
 
* <code>[[volumes:]]</code>
 
* <code>[[volumes:]]</code>
 
* [[Kubernetes HostPath volume provider]]
 
* [[Kubernetes HostPath volume provider]]
* [[DoKC]] community
+
* [[Data on Kubernetes Community (DoKC)]]
 
* [[DiskPressure]]
 
* [[DiskPressure]]
  

Revision as of 13:26, 29 June 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: