Skip to content
This repository was archived by the owner on Nov 19, 2026. It is now read-only.
This repository was archived by the owner on Nov 19, 2026. It is now read-only.

Support for creating headless service #130

Open

Description

@surajssd

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

Activity

  1. kadel commented on May 19, 2017

    @kadel
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions