Difference between revisions of "Kubectl patch pvc"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
 
  [[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
 +
 +
[[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
 +
 +
  
 
<code>[[kubectl describe sc standard]]</code>
 
<code>[[kubectl describe sc standard]]</code>

Revision as of 20:40, 7 November 2022

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


kubectl describe sc standard

gcloud compute disks resize


AllowVolumeExpansion

See also

Advertising: