Difference between revisions of "Kubectl patch pvc"
Jump to navigation
Jump to search
Line 19: | Line 19: | ||
* <code>[[AllowVolumeExpansion]]</code> | * <code>[[AllowVolumeExpansion]]</code> | ||
* <code>[[gcloud compute disks resize]]</code> | * <code>[[gcloud compute disks resize]]</code> | ||
+ | * <code>[[AllowVolumeExpansion]]</code> | ||
+ | * <code>[[kubectl patch pvc]]</code> | ||
== See also == | == See also == |
Revision as of 06:20, 23 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 Solution: ensure your StorageClass has AllowVolumeExpansion: True defined. Can be modified or added without loosing data.
- https://www.gooksu.com/2022/08/how-to-increase-space-for-your-elasticsearch-instances-in-k8s-on-eck/
Related
See also
Advertising: