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
How does CRC handle persistent volume e.g. local or hostPath #728
Comments
At the moment there is a small issue with the PVs which will be resolved in a newer version (soon to be available). |
This will not be available as was possible with Minishift. |
This is not available to the user. An alternative approach would be to use |
@morningspace As part of CRC, we preprovision around 30 PV which can be used for any application which need to have pv. |
@praveenkumar Ah... so, that's similar to what
|
Something like that.
I think you should just have a pvc in your app and it will request for any available pv. That shouldn't be much annoying. like described in the k8s docs https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims and then use in deployment or in pod spec https://kubernetes.io/docs/concepts/storage/persistent-volumes/#claims-as-volumes
No the one which we create already have those settings and your application should use it as it is, till now we didn't see any report around having this issue during usage of pv. |
@praveenkumar Thanks for your reply and sorry for the confusion. I just checked the 30 crc pre-provisioned PVs, it's hostPath (Type=HostPath). So, that has nothing to do w/ local PV (Type=Local) Regarding hostPath PV, one thing I did recently was trying to deploy API Connect onto OpenShift v3.11 using
I will check that if the same issue happens on crc, and close this issue if not. Thanks! |
@morningspace sure, if you face same issue, please make sure to put all the steps so we can able to reproduce and identify what is missing. |
@praveenkumar I tried to deploy API Connect onto crc and got the same Besides the two links that I have pasted above where people discussed very similar issue, here're ones from minishift and rook:
Because API Connect is a commercial product, which I could not share here, I will find time and try to figure out way to reproduce it by simple pod, so that you can reproduce easily on your side. |
@morningspace As we discussed in the meeting, It might be the way your application interacting to storage, |
Hi @praveenkumar Sorry for my late response...
Yeah, that makes sense to me, however, I go into the container and type |
Anyway, since now I have workaround, I'm going to close this issue for now, and reopen if there's anything new found. |
Thanks for the feedback
In this case we will not make any changes to the permissions as given to
the PVs.
|
When we deploy applications on CRC, some application may need persistent volume. This is true especially for local testing for example using local or hostpath PV which may need manual provisioning. I'd like to know how CRC handle this case.
On the other hand, I've seen some people use
MiniShift
to do the provisioning byminishift ssh
. And, it can easily be integrated into automatic scripts using the formatminishift ssh [-- COMMAND] [flags]
. Though, I could understand if someone tells me to touch the CRC VM directly is not recommended:-)Another possible option may be the MiniShift Host Folders which are directories on the host shared between the host and the Minishift VM.
With that, what is the CRC recommendations in such case?
General information
CRC version
The text was updated successfully, but these errors were encountered: