Difference between revisions of "Kubernetes PVC expansion: kubectl patch pvc"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
NAMESPACE NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE | NAMESPACE NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE | ||
− | dev elasticsearch-master-elasticsearch-master-0 Bound pvc-25c6e973-8fc4-463b-9288- | + | dev elasticsearch-master-elasticsearch-master-0 Bound pvc-25c6e973-8fc4-463b-9288-123456678903 30Gi RWO standard 2y234d |
* <code>kubectl -n [[your-namespace]] [[kubectl patch|patch]] pvc your-pvc-name -p '{"spec":{"resources":{"requests":{"storage":"16Gi"}}}}}'</code> | * <code>kubectl -n [[your-namespace]] [[kubectl patch|patch]] pvc your-pvc-name -p '{"spec":{"resources":{"requests":{"storage":"16Gi"}}}}}'</code> |
Revision as of 06:27, 23 November 2022
List your PVCs:
kubectl get pvc -A
NAMESPACE NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE dev elasticsearch-master-elasticsearch-master-0 Bound pvc-25c6e973-8fc4-463b-9288-123456678903 30Gi RWO standard 2y234d
kubectl -n your-namespace patch pvc your-pvc-name -p '{"spec":{"resources":{"requests":{"storage":"16Gi"}}}}}'
Related
See also
- Kubernetes Persistent Volume Claim (PVC) (
kind: PersistentVolumeClaim
), Kubernetes Persistent volumes (PV)(kind: PersistentVolume)
,kubectl describe pvc, kubectl get pvc
, ClaimLost, ProvisioningSucceeded, PV access control - 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: