Difference between revisions of "Kubernetes PVC expansion: kubectl patch pvc"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
 
  [[kubectl get pvc -A]]
 
  [[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-12345667  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:26, 23 November 2022

Advertising: