Editing Kubernetes Persistent Volume Claim (PVC)

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
* https://kubernetes.io/docs/concepts/storage/persistent-volumes/
+
 
 +
{{PVC types}}
 +
 
  
 
* <code>[[kubectl get pvc]]</code>
 
* <code>[[kubectl get pvc]]</code>
* <code>[[kubectl get pvc -o yaml]]</code>
 
 
* <code>[[kubectl describe pvc]] mysql-pv-claim</code>
 
* <code>[[kubectl describe pvc]] mysql-pv-claim</code>
 
* <code>[[kubectl describe pvc grafana]]</code>
 
* <code>[[kubectl describe pvc grafana]]</code>
* <code>[[kubectl patch pvc]]</code>
 
  
[[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.
 
  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 ==
+
  [[kind: PersistentVolumeClaim]]
{{PVC types}}
 
 
 
== Examples ==
 
[[Volume expansion]]
 
{{PVC expansion}}
 
 
 
[[kubectl apply -f your_new_pvc.yml]]
 
persistentvolumeclaim/myclaim created
 
 
 
 
 
  [[kubectl describe pvc]] yourpv
 
{{kubectl describe pvc example}}
 
 
 
== Errors ==
 
* <code>[[FailedScheduling]] .../... [[Pod has unbound immediate PersistentVolumeClaims]]</code>
 
* Warning  ClaimLost          [[persistentvolumeclaim/]]yourclaim  [[Bound claim has lost reference to PersistentVolume]]. Data on the volume is lost!          [[Cluster has no ready nodes.]]
 
* <code>0/7 nodes are available: 7 [[pod has unbound immediate PersistentVolumeClaims]]</code>
 
  
 
== Related terms ==
 
== Related terms ==
* [[Kubernetes Persistent Volumes (PV)]]: <code>[[kind]]: [[PersistentVolume]]</code>
+
* <code>[[kind]]: [[PersistentVolume]]</code>
 
* <code>[[kind: StorageClass]]</code>
 
* <code>[[kind: StorageClass]]</code>
 +
* <code>[[kubectl create]]</code>
 
* <code>[[kubectl describe deployment]]  | grep [[PersistentVolumeClaim]]</code>
 
* <code>[[kubectl describe deployment]]  | grep [[PersistentVolumeClaim]]</code>
 
* <code>[[aws ec2 describe-volumes]] | [[grep -A1]] Name</code>
 
* <code>[[aws ec2 describe-volumes]] | [[grep -A1]] Name</code>
 
* <code>[[awsElasticBlockStore]]</code>
 
* <code>[[awsElasticBlockStore]]</code>
 
* <code>[[kubectl get volumesnapshot]]</code>
 
* <code>[[kubectl get volumesnapshot]]</code>
* [[K8up Kubernetes Backup Operator]]
 
* <code>[[kind: Provisioner]]</code>
 
* <code>[[volumes:]]</code>
 
* [[Kubernetes HostPath volume provider]]
 
* [[Data on Kubernetes Community (DoKC)]]
 
* [[DiskPressure]]
 
* [[persistentvolumeclaim]] "yourpvname" [[not found]].
 
* [[Kubernetes Finalizers]]
 
  
 
== Activities ==
 
== Activities ==
 
* [[CKA v1.23]]: [[Understand persistent volume claims primitive]]
 
* [[CKA v1.23]]: [[Understand persistent volume claims primitive]]
* [[Create a PersistentVolumeClaim]]
+
* [[CKA v1.18]]: [[Understand persistent volumes and know how to create them]]
* [[Create a new volume using: kind: PersistentVolumeClaim]]
+
* [[CKA v1.15]]: [[Understand PersistentVolumeClaims (PVC) for storage]]
 
 
* Read https://cloud.google.com/kubernetes-engine/docs/concepts/persistent-volumes
 
  
 
== See also ==
 
== See also ==
* {{PVC}}
 
 
* {{Kubernetes storage}}
 
* {{Kubernetes storage}}
* {{DoKC}}
 
  
 
[[Category:K8s]]
 
[[Category:K8s]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: