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

[Feature]: Rethink how we do ports #156

Open
2 tasks done
svrnm opened this issue Feb 11, 2025 · 0 comments
Open
2 tasks done

[Feature]: Rethink how we do ports #156

svrnm opened this issue Feb 11, 2025 · 0 comments
Labels
component/generator Related to a generator component enhancement New feature or request

Comments

@svrnm
Copy link
Member

svrnm commented Feb 11, 2025

Problem Statement

As of today the way we configure and manage ports for services is complicated and confusing:

  • a service provides the HTTP entrypoint on a predefined port (8080 by default), which can be reconfigured, so accomodate docker compose (see
    "services": 80, # this is different from the "default default" on purpose.
    for example), as it needs port 80 to allow easy service to service communication
  • k8s provides the capability to have a service port, so it can map 80 to 8080 transparently
  • we allow a top level item called exposedPort (previously simply port) to make a service accessible from the outside.

This is farily complicated and also comes with a set of disadvantages:

  • If we introduce additional entry points (think grpc, message queues, etc.) the "exposedPort" on top level will no longer work as it is not clear on which entry point it should be mapped
  • Contributors and endusers may get confused from the amount of settings and get things configured incorrectly because they misunderstand some of the concepts.

The question is now: how can we do better?

Proposed Solution

to be done

Alternatives Considered

No response

Additional Context

No response

Checklist

@svrnm svrnm added component/generator Related to a generator component enhancement New feature or request labels Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/generator Related to a generator component enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant