Difference between revisions of "AllowVolumeExpansion"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
[[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 | ||
+ | |||
+ | |||
+ | [[Minikube]] | ||
+ | kubectl describe sc standard | grep AllowVolumeExpansion | ||
+ | AllowVolumeExpansion: <unset> | ||
Revision as of 18:47, 22 October 2023
- https://kubernetes.io/docs/concepts/storage/storage-classes/#allow-volume-expansion
- https://kubernetes.io/blog/2018/07/12/resizing-persistent-volumes-using-kubernetes/
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: <unset>
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
Activities
- Kubernetes PVC resize: kubectl patch
- Read https://kubernetes.io/blog/2018/07/12/resizing-persistent-volumes-using-kubernetes/
See also
- Kubernetes storage, storage classes, PersistentVolume (PV), PVC, CSI,
kind: StorageClass, kind: PersistentVolumeClaim, kind: PersistentVolume
,kubectl [ get | describe | edit ] pvc
,volumeClaimTemplates:
,kubectl patch pv
,FailedMount
, Volume Expansion, Volume Cloning, snapshots, ExtraVolumes, NotTriggerScaleUp,volumePVCDataSource, AllowVolumeExpansion
, EKS storage, provisioner, Storage Capacity Tracking,VolumeBinding, VolumeClaimTemplate, storage.k8s.io
, CKA Storage, DoKC, EmptyDir, Volume populators,storageclass.kubernetes.io
Advertising: