-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Volumes not mounted for Pre-hook container #4711
Comments
https://docs.openshift.org/latest/rest_api/openshift_v1.html#v1-execnewpodhook doesn't indicate any way to specify volumes for the lifecycle pod. If volume definitions are not getting automatically copied from the deploymentconfig pod template, then there should be a way to specify what volumes you do want on the lifecycle pod. Without being able to share the volumes, lifecycle pods seem pretty limited. |
See #3739. |
This is fixed by #4783 |
I'm having the same issue with an |
I'm using openshift 1.0.8, maybe it was fixed in 1.1 only? Thanks |
I dont' want to publicly share this, can I leave a private message somewhere to you? |
@gravis absolutely; feel free to email me directly using dmace@redhat.com |
@dan: I get it.
If the prehook is executed in a dedicated pod, the EmptyDir is attached to
this pod only, and lost after the pod is destroyed.
This pod should (must?) become the final pod deployed, but I'm not 100%
sure it's the case currently
|
@gravis yeah, that's it. EmptyDir isn't reusable across pods. You need to use something backed by shared storage, a persistent volume, etc. |
That's too bad. the |
I think I understand, os can't exec a pre command, BEFORE the actual pod command. |
I'm trying to leverage a Recreate Pre-hook and a PV to seed configuration for a container. I see that my seeding script fails because the mounted path for my container, as specified by my template, cannot be found. But the application pod succeeds using the same script (and is able to write to the mounted path). The PVC and PV have status 'bound' when I do a oc get pvc; oc get pv
The text was updated successfully, but these errors were encountered: