opencompose icon indicating copy to clipboard operation
opencompose copied to clipboard

Support for creating headless service

Open surajssd opened this issue 8 years ago • 1 comments

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

surajssd avatar May 18 '17 10:05 surajssd

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.

kadel avatar May 19 '17 10:05 kadel