Study. uk . com
  1. Home
  2. All questions
  3. Question 847

CKA study material · question 847 of 1000

An existing ReadWriteOnce volume must be moved to ReadWriteOncePod without losing data. What does the documented procedure involve?

  1. Patching the claim's accessModes in place
  2. Setting the volume to Retain, recreating the claim with the new mode, and clearing the claimRef
  3. Snapshotting the volume and restoring it into a new claim
  4. Recreating the StorageClass with the new access mode
Show the answer

Answer: B. Setting the volume to Retain, recreating the claim with the new mode, and clearing the claimRef

The claim's access mode cannot be edited, so the volume is protected with Retain, the claim deleted and recreated with ReadWriteOncePod, and the stale claimRef cleared so it rebinds.

Source: Change the Access Mode of a PersistentVolume to ReadWriteOn… (Kubernetes) — Change the access mode on a PersistentVolume to ReadWriteOncePod

Challenge yourself on this topic → Study as cards