Difference between revisions of "AllowVolumeExpansion"

From wikieduonline
Jump to navigation Jump to search
 
(21 intermediate revisions by 3 users not shown)
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/
  
* https://kubernetes.io/docs/concepts/storage/storage-classes/#allow-volume-expansion
 
[[gcePersistentDisk]] [[1.11]]
 
  
 +
[[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"}}}}'
Line 8: Line 9:
  
  
  https://www.gooksu.com/2022/08/how-to-increase-space-for-your-elasticsearch-instances-in-k8s-on-eck/
+
  [[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
  
  
Line 20: Line 31:
  
 
https://kubernetes.io/blog/2018/07/12/resizing-persistent-volumes-using-kubernetes/
 
https://kubernetes.io/blog/2018/07/12/resizing-persistent-volumes-using-kubernetes/
ExpandInUsePersistentVolumes. It is supported by the in-tree volume plugins GCE-PD, AWS-EBS, Cinder, and Ceph RB
 
  
 +
<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 ==
 
== See also ==

Latest revision as of 12:34, 15 January 2024


gcePersistentDisk (Kubernetes.io/gce-pd)	1.11 (Jun 2018)
kubectl patch pvc elasticsearch-master-elasticsearch-master-0 -p '{"spec":{"resources":{"requests":{"storage":"35Gi"}}}}'
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/

ExpandInUsePersistentVolumes. 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[edit]

Activities[edit]

See also[edit]

Advertising: