Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tmarback opened this issue Mar 2, 2024 · 0 comments
Open

Comments

@tmarback
Copy link

tmarback commented Mar 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant