Skip to content
Discussion options

You must be logged in to vote

Check spec.claimRef.uid on the restored PV. A PVC recreated by Flux has a new UID even if its name and namespace are unchanged, so the exported PV may still be reserved for the old claim. That would explain the Released state.

For a repeatable restore, keep clean PV/PVC manifests: preserve the PV's actual storage source/path and node affinity, set persistentVolumeReclaimPolicy: Retain, and set the PVC's spec.volumeName to that PV. Reserve the PV with claimRef.name and namespace, without the old claim UID. Don't copy the old object UID, resourceVersion or status. Kubernetes documents pre-binding an existing volume; storage class, access modes and size still have to match. Check that the no…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@nikp123
Comment options

Answer selected by nikp123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants