-
Notifications
You must be signed in to change notification settings - Fork 244
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
add support for command
field in container
components
#5648
Comments
I'm summarizing my notes below after looking into this issue: The approach suggested here to run the user-defined As As discussed, I investigated and did some preliminary research/testing to see if we could instead run our I was thinking about an alternative approach that builds upon the fact that, to me, Kubernetes Pods were precisely designed to solve this issue of having multiple cooperating processes (as containers) that form a cohesive unit of service. We could run multiple containers in the same pod, sharing a same network namespace and volumes; they could even share the process namespace. So with that in mind, the Deployment and Pod specification generated by
I am not sure yet to what extent this would solve the issue here (because I may probably be missing some pieces). |
Note that it could also be possible to share the Process (Pid) namespace between containers of a same pod: |
As discussed with @rm3l , I suggest to get rid of supervisord, and take advantage of the fact that |
This is a good idea 👍 It looks like a nice and clean solution. The only downside that I can see here is that the Let's try to implement this approach. This could drastically simplify odo code. |
+1 for this approach. Thank you all for your feedback. |
devfile/registry#102 (comment)
Odo is not able to use devfiles that have
container
component with a customcommand
. Problem is that in the current odo implementation it overrides the default process in deployment which means that supervisord is not started. When supervisord is not running, odo is not able to execute any commands in the container.A quick fix is for odo to ignore
command
andargs
fields in container components.This has been done in #5620
The proper fix is going to be to keep using
supervisord
as pid1, and execute thecommmand
withargs
"on the side" as a separate process./kind bug
/priority high
The text was updated successfully, but these errors were encountered: