Intermediate Kubernetes
Q67 / 100

What is the difference between "emptyDir" and "hostPath" volume types?

Correct! Well done.

Incorrect.

The correct answer is B) emptyDir creates a temporary directory for the Pod's lifetime, initially empty and shared between its containers, deleted when the Pod is removed; hostPath mounts a file/directory from the host node's filesystem into the Pod

B

Correct Answer

emptyDir creates a temporary directory for the Pod's lifetime, initially empty and shared between its containers, deleted when the Pod is removed; hostPath mounts a file/directory from the host node's filesystem into the Pod

Explanation

emptyDir is ephemeral storage tied to the Pod's lifecycle (useful for scratch space or sharing data between containers in a Pod), while hostPath ties a Pod to a specific node's filesystem, which can cause issues if the Pod is rescheduled elsewhere.

Progress
67/100