Skip to content

ArgoCD chart + secure Traefik creates port names that are too long #145

@tmarback

Description

@tmarback

When following the instructions to install the portal using ArgoCD, if the configuration is set to use Traefik (i.e. network.ingress_type: traefik) with secure mode enabled (network.traefik.secure: true), the Ingress object fails to create because the generated port names are too long (Kubernetes limits port names to be at most 15 characters, though it seems that it isn't validated in Service objects for whatever reason)

Modifying the Application object provided by the instructions to use a shorter release name makes it go through. See here for where the port name is being used with Ingress and fails to validate.

This could be solved by using trunc in the template to cut off the release name if it's too long, but I'd suggest just sticking with simple port names - port names don't have to be unique other than within the service or pod object itself, and http is just as descriptive as openunison-insecure (within the context of a Service called openunison) to the kind of person that would actually be looking at it.

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