-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Use the same data only container as sidekick and be able to load balance to all service containers using the data only container. #2159
Comments
If a (data only) container is used with --volumes-from as sidekick each container should share the same volumes instead of create independent data only containers for each. Would be important for me. |
Any plans to make shared data only containers possible via sidekicks in the near future? Would need it for testung in a dev env. |
+1 - needing to make the data container the primary definitely gets in the way of setting up the LBs to the actual services. |
Any progress with that feature request? There should be two ways to build my service.
|
+1 Trying to make a simple web server, and I have the current configuration: Nginx container, php-fpm contianer, both with volumes from an "app" container which is simply the data for the app (html pages, etc). I have an external Load Balancer that is directed towards the Nginx container, which links to the php container which links to the mysql container. If I use sidekicks I need Nginx to be the main container, but then I can't link the php container to mysql. |
+1 I have a data only container with 3 sidekicks running tomcat using configuration files located inside that data container. There is currently no way for me to use the builtin load balancer or create a nginx reverse proxy and point to those sidekicks using links |
@jschilperoord could a named volume solve this? Ie, instead of using volumes-from, put the data in named volumes and always reference the volume by name in your tomcat container like:
If I'm oversimplifying let me know. |
@cjellick Thanks for your response 👍 Would using named volumes make the same volume available to all containers using it. In my case 3 tomcat processes using some configuration from a shared volume ? |
@jschilperoord yes, all containers on the same host would use the same exact volume and have access to the same data. |
@cjellick This works. However what volumes-from offered me is the assurance my tomcat containers where using the volumes of that container. Is it possible to change the config: part to something unique for the stack being launched ? I don't want another tomcat service using the same config somehow |
@jschilperoord you mean something that is dynamically generated each time you deploy the stack? If that's what you mean, then no, not at this time. You'd have to change the value in the yaml file. |
@cjellick |
So I was a bit mistake. rancher-compose does support environment variable interpolation: http://docs.rancher.com/rancher/rancher-compose/environment-interpolation/ This may or may not be exactly what you're looking for, but its at least an option. |
@deniseschannon is there any reason this item has low priority? Are those use-cases covered by Convoy? In my case, i am coming from 2 angles:
I would be glad to know why... a) this issue has a low prio - are there alternatives / workarrounds ? Thanks! |
With the release of Rancher 2.0, development on v1.6 is only limited to critical bug fixes and security patches. |
Moved feature from request #2025 (comment) to a new issue.
Would be great to have service containers with loadbalancer which use the same data only container / sidekick as storage.
LB -> apache container | sshd container -> shared data only container as sidekick.
The text was updated successfully, but these errors were encountered: