title: emptyDir vs hostPath volume type usage on a kubernetes deployment
body: <p>emptyDir vs hostPath (and other) volume type usage on a kubernetes deployment</p>
  
  <blockquote>
    <p>As read from official documentation it is stated that when using emptyDir with a POD. 
    <strong>Container crashing does NOT remove a Pod from a node, so the data in an emptyDir volume is safe across Container crashes</strong>.</p>
  </blockquote>
  
  <p>So i was questioning <strong>can we somehow force the content of POD survive on upgrade (rollout) using emptyDir volume type along with (node selector/affinity) usage forcing a POD to be pinned to a given node ?</strong>  or hostPath (or other volume type )is what we will need consider at design to make sure data is persisted even during rollout where POD is recreated regardless of node pinning (we have flexibility to pin this app to a large node in cluster)</p>