Skip to main content

k8s Volumes: HostPath and EmptyDir Explained

k8s volume mount
Hugo
Author
Hugo
DevOps Engineer based in London
  1. HostPath:
  • Shares storage between nodes
  • Can be used for data persistence across container restarts
  1. EmptyDir:
  • Independent for each pod
  • Shared between containers within a pod
  • Data is not persisted across container restarts