Description
We use hostPath
in volumes?
This doesn't really makes sense to me. When you are deploying to Kubernets cluster hostPath
will never contain files that you have on your local machine from which you are running kompose
. Unless you somehow copy them manually.
Another thing with hostPath
is that even if you somehow upload you files to it, whenever pod is rescheduled to another node hostPath
can contain completely different files.
Because of above I think that hostPath
can confuse users instead of helping.
Ideally user should be able to choose which type of volume he/she wants (this will usually depend on his environment setup (gcePersistentDisk, awsElasticBlockStore, nfs ....)).
For now I propose using emptyDir, and displaying warning or some message explaining why this is. And that right now you can't copy content of local directory to cluster volume.