Bind two stuck claims and keep a volume after its claim
- 12 min
- 7 steps
- Config, storage and state
Steps
0 of 7 done
Read why two PersistentVolumeClaims in media are Pending, give each what it waits for, then switch a volume to Retain and watch it outlive its claim.
Step 1 of 7
The
uploadsclaim inmediahas beenPendingsince the namespace was created, and nothing looks broken. Find the event that says what it is waiting for.Checked against what your commands print.
Step 2, not started: Give
uploadswhat it is waiting for, without editing the claim or the StorageClass. TheuploaderDeployment already mounts it.Step 3, not started: Find the node the scheduler chose for the
uploadsvolume, as recorded on the claim itself.Step 4, not started:
reports-datais alsoPending, for a different reason. Find the reason and fix it with the manifest provided in this terminal, so the claim binds.Step 5, not started: The data in
uploadsmust survive even if someone deletes the claim. Change the reclaim policy of the volume bound touploadsso that deleting the claim keeps the volume, then list the volumes to confirm.Step 6, not started: Retire the uploader: remove the
uploaderDeployment and theuploadsclaim, and wait until the claim is gone.Step 7, not started: Show that the volume outlived its claim, and read the phase it is in and which claim it still remembers.
Enter runs the command. Tab completes, and the arrow keys recall earlier commands. Control C stops a watch. On an empty line, or after Escape, Tab moves focus out of the terminal.