kubectl patch pvc

From wikieduonline
Revision as of 20:44, 7 November 2022 by Welcome (talk | contribs)
Jump to navigation Jump to search

kubectl patch pvc elasticsearch-master-elasticsearch-master-0 -p '{"spec":{"resources":{"requests":{"storage":"35Gi"}}}}'
persistentvolumeclaim/elasticsearch-master-elasticsearch-master-0 patched
kubectl patch pvc elasticsearch-master-elasticsearch-master-1 -p '{"spec":{"resources":{"requests":{"storage":"35Gi"}}}}'
Error from server (Forbidden): persistentvolumeclaims "elasticsearch-master-elasticsearch-master-1" is forbidden: only dynamically provisioned pvc can be resized and the storageclass that provisions the pvc must support resize

Solution: AllowVolumeExpansion:  True


kubectl describe sc standard


Related

See also

Advertising: