title: kubernetes mountPath vs hostPath
body: <p>I am trying to deploy an app to kubernetes cluster and I want to store data in <strong>Persistent Volume</strong>. However, I am very confused about two parameters in the setup. Can someone explains what is the different between <strong>volumes.hostPath</strong> and <strong>volumeMounts.mountPath</strong>? I read some documentations online but it does not help me to understand.</p>
  
  <pre><code>volumeMounts:
    - mountPath: /var/lib/mysql
  
  volumes:
    hostPath:
      path: /k8s
  </code></pre>
  
  <p>If my setup is as above, is the volume going to be mounted at <code>/k8s/var/lib/mysql</code>?</p>