Skip to content

hostPath volumes? #109

Closed
Closed
@kadel

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions