Automation, Orchestration, and Scripting
A database pod writes its data to a volume. When the pod is deleted and rescheduled to another node, the data must still be available to the new pod. Which object should the administrator use to request this storage?
Show the answer
Correct answerC. A PersistentVolumeClaim
A PersistentVolumeClaim requests storage from a PersistentVolume, whose lifecycle is independent of any pod, so the data outlives the pod. An emptyDir volume is tempting because it is a volume, but it is created with the pod and deleted when the pod is removed from the node.