From db301d55d676f614acd39940065fa2470acba4af Mon Sep 17 00:00:00 2001 From: network-charles Date: Fri, 3 Jan 2025 13:01:44 +0000 Subject: [PATCH 1/2] update pv --- content/en/docs/concepts/storage/persistent-volumes.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/en/docs/concepts/storage/persistent-volumes.md b/content/en/docs/concepts/storage/persistent-volumes.md index 90b79be3381f5..84af2eeeb97fe 100644 --- a/content/en/docs/concepts/storage/persistent-volumes.md +++ b/content/en/docs/concepts/storage/persistent-volumes.md @@ -818,6 +818,12 @@ storage with specific access modes. Claims use [the same convention as volumes](#volume-mode) to indicate the consumption of the volume as either a filesystem or block device. +### Volume Name + +Claims use this to explicitly bind to a specific PersistentVolume. +If the specified PV is already bound to another PVC, the binding will be stuck +in a pending state. + ### Resources Claims, like Pods, can request specific quantities of a resource. In this case, From 71031f3a5baeb7c7ce7a9253ba2d77326d8926be Mon Sep 17 00:00:00 2001 From: Charles Uneze Date: Fri, 3 Jan 2025 15:36:25 +0100 Subject: [PATCH 2/2] Suggestion 1 Co-authored-by: Tim Bannister --- content/en/docs/concepts/storage/persistent-volumes.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/en/docs/concepts/storage/persistent-volumes.md b/content/en/docs/concepts/storage/persistent-volumes.md index 84af2eeeb97fe..1a16a0bd9df27 100644 --- a/content/en/docs/concepts/storage/persistent-volumes.md +++ b/content/en/docs/concepts/storage/persistent-volumes.md @@ -820,7 +820,9 @@ consumption of the volume as either a filesystem or block device. ### Volume Name -Claims use this to explicitly bind to a specific PersistentVolume. +Claims can use the `volumeName` field to explicitly bind to a specific PersistentVolume. You can also leave +`volumeName` unset, indicating that you'd like Kubernetes to set up a new PersistentVolume +that matches the claim. If the specified PV is already bound to another PVC, the binding will be stuck in a pending state.