support Multi-service with dependencies within same pod #1124
Labels
area/library
Common devfile library for interacting with devfiles
lifecycle/rotten
Rotten items. These items have been stale for 60 days and are now closed.
lifecycle/stale
Stale items. These items have not been updated for 90 days.
student
Identified work that the students can work on
Which area this feature is related to?
/area library
Which functionality do you think we should add?
Why is this needed? Is your feature request related to a problem?
Detailed description:
The services need to be deployed in expected order, i.e. will be defined by depend_on in the docker-compose file
Targets:
The containers will be built and deployed in order. MUST guarantee dependency services have been started before starting a dependent service
The services will be linked.
Implementation:
containers within same pod share the same network, use localhost to connect each service.
Ensure the commands for execution and deployment are in order.
Note: potential issue with multiple services in same pod. containers within same pod share the same network, so may result in port conflict.
To-be-built containers, we may ask user to update the port number in dockerfile.
However, for existing containers, it might be a big issue. And thus, run in separate pod is a better solution.
Describe the solution you'd like
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: