Skip to content

Commit 574eca9

Browse files
authored
Merge pull request #30906 from mattcary/pv-resize
Clarify editing PV for volume resize
2 parents 1b12bcc + 33aae9b commit 574eca9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

content/en/docs/concepts/storage/persistent-volumes.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,16 @@ To request a larger volume for a PVC, edit the PVC object and specify a larger
254254
size. This triggers expansion of the volume that backs the underlying PersistentVolume. A
255255
new PersistentVolume is never created to satisfy the claim. Instead, an existing volume is resized.
256256

257+
{{< warning >}}
258+
Directly editing the size of a PersistentVolume can prevent an automatic resize of that volume.
259+
If you edit the capacity of a PersistentVolume, and then edit the `.spec` of a matching
260+
PersistentVolumeClaim to make the size of the PersistentVolumeClaim match the PersistentVolume,
261+
then no storage resize happens.
262+
The Kubernetes control plane will see that the desired state of both resources matches,
263+
conclude that the backing volume size has been manually
264+
increased and that no resize is necessary.
265+
{{< /warning >}}
266+
257267
#### CSI Volume expansion
258268

259269
{{< feature-state for_k8s_version="v1.16" state="beta" >}}

0 commit comments

Comments
 (0)