-
Notifications
You must be signed in to change notification settings - Fork 772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hostPath volumes? #109
Comments
You're right. Let's remove |
i need the hostPaht, even if i copy them manually. |
@xiaoping378 , can you please explain your use case ? |
@surajnarwade |
Hey @kadel @surajnarwade @xiaoping378 I'm re-opening this issue for discussion. As volumes are a very difficult area for converting, I suggest we add a different parameter, preferably, For example, we'd have:
What do you think? |
@cdrage how does it help? |
@surajssd Not exactly an anti-pattern, but more in regards to filling in the "blanks" between Kompose and its heavy use of volumes and the "PersistentVolumeClaim" method for Kubernetes. Since we already have one parameter (emptyvols), it makes sense to combine them all into one parameter (volumes) so we don't have multiple similar params. |
In most cases Behave the same means that it will most probably have empty storage. Also |
@kadel thoughts? |
Adding But this will have one big limitation that might confuse pepole a bit. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
This has been fixed in #957 |
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 runningkompose
. 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 nodehostPath
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.
The text was updated successfully, but these errors were encountered: