opencompose
opencompose copied to clipboard
Support for creating headless service
With kompose we by default create a headless service when no port is defined in the configuration. We can do something with intelligence here.
If no ports info given in OpenCompose file and we can remotely describe the image config and find if any port info is given then we create normal service, otherwise if we cannot get port info from anywhere then we just create headless service.
OR We can have a flag for this if we want a headless service to be created or not.
Docs: https://kubernetes.io/docs/concepts/services-networking/service/#headless-services
I don't think we will create headless services with OpenCompose. In Kompose it was a workaround for the fact that in docker-compose users don't have to specify a port for application to communicate with each other.
OpenCompose will always require users to specify port if they want to have application exposed. With that, we will get rid of ambiguity that was in docker-compose.
If you agree we can close this issue.