Editing AllowVolumeExpansion

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/storage-classes/#allow-volume-expansion
 
* https://kubernetes.io/blog/2018/07/12/resizing-persistent-volumes-using-kubernetes/
 
  
 
[[gcePersistentDisk]] (<code>[[Kubernetes.io/gce-pd]]</code>) [[1.11]] (Jun 2018)
 
  
 
  [[kubectl patch pvc]] elasticsearch-master-elasticsearch-master-0 -p '{"spec":{"resources":{"requests":{"storage":"35Gi"}}}}'
 
  [[kubectl patch pvc]] elasticsearch-master-elasticsearch-master-0 -p '{"spec":{"resources":{"requests":{"storage":"35Gi"}}}}'
 
  persistentvolumeclaim/elasticsearch-master-elasticsearch-master-0 patched
 
  persistentvolumeclaim/elasticsearch-master-elasticsearch-master-0 patched
 
 
[[kubectl describe sc standard]] | grep [[AllowVolumeExpansion]]
 
[[AllowVolumeExpansion]]:  True
 
 
[[Minikube]]
 
[[kubectl describe sc standard]] | grep AllowVolumeExpansion
 
AllowVolumeExpansion:  <unset>
 
 
[[kubectl get storageclass]]
 
NAME                PROVISIONER                RECLAIMPOLICY  VOLUMEBINDINGMODE  ALLOWVOLUMEEXPANSION  AGE
 
[[csi-hostpath-sc]]      hostpath.[[csi.k8s.io]]        Delete          Immediate          false                  5m27s
 
standard (default)  [[k8s.io/minikube-hostpath]]  Delete          Immediate          false                  25h
 
 
 
[[kubectl get storageclass]]
 
NAME                [[PROVISIONER]]            RECLAIMPOLICY  VOLUMEBINDINGMODE  ALLOWVOLUMEEXPANSION  AGE
 
standard (default)  [[kubernetes.io/gce-pd]]  Delete          Immediate          false                  3y220d
 
 
NAME                PROVISIONER            RECLAIMPOLICY  VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION  AGE
 
standard (default)  kubernetes.io/gce-pd    Delete          Immediate              true                  461d
 
 
 
https://kubernetes.io/blog/2018/07/12/resizing-persistent-volumes-using-kubernetes/
 
 
<code>ExpandInUsePersistentVolumes</code>. It is supported by the in-tree volume plugins GCE-PD, AWS-EBS, Cinder, and Ceph RB
 
 
 
apiVersion: storage.k8s.io/v1
 
[[kind: StorageClass]]
 
metadata:
 
  name: standard
 
parameters:
 
  type: pd-standard
 
[[provisioner:]] kubernetes.io/gce-pd
 
allowVolumeExpansion: true
 
reclaimPolicy: Delete
 
 
== Related ==
 
* <code>[[Kubernetes Volume Expansion]]</code>
 
* <code>[[ExpandInUsePersistentVolumes]]</code>
 
* [[CSI Volume Cloning]]
 
 
== Activities ==
 
* [[Kubernetes PVC resize: kubectl patch]]
 
* Read https://kubernetes.io/blog/2018/07/12/resizing-persistent-volumes-using-kubernetes/
 
 
== See also ==
 
* {{K8s sto}}
 
 
[[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)

Templates used on this page:

Advertising: