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?
- Which kubectl command is used to view the logs of a pod?
- What is a Pod in Kubernetes?