Kubernetes
Easy
Storage
What happens to a pod's data when it is deleted?
Select your answer:
Show answer and explanation
Answer: The data is lost unless it was stored in a PersistentVolume
Explanation
When a pod is deleted, all data in its containers' filesystems is lost. To persist data beyond the lifecycle of a pod, you must use PersistentVolumes and PersistentVolumeClaims, or other external storage solutions.
More easy Kubernetes questions
- Which command would you use to view events in a Kubernetes cluster?
- Which kubectl command would you use to view the current context?
- What is the purpose of the 'kubectl exec' command?
- After maintenance on a drained Kubernetes node, which command lets the scheduler place new pods on it again?
- A Kubernetes container shows reason OOMKilled with exit code 137. What does the exit code 137 tell you?
- A container restarted after an out-of-memory kill. Which field of the Kubernetes pod status records that the previous run was OOMKilled?