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

Handle TCP and UDP entrypoints #65

Merged
merged 3 commits into from
May 19, 2024
Merged

Handle TCP and UDP entrypoints #65

merged 3 commits into from
May 19, 2024

Conversation

YuukanOO
Copy link
Owner

This PR add initial support to expose raw TCP and UDP services along with HTTP services.

Given the following compose file:

services:
  app:
    image: an/image
    ports:
      - "80:80" # No protocol defined, assumes it's an HTTP service
      - "81:81" # Additional HTTP services are now supported but will be exposed on non secure allocated ports
      - "82:82/tcp" # Specifying the protocol will force seelf to expose it on a custom port over TCP
      - "83:83/udp" # Same as for TCP

When custom ports should be allocated to make your services accessibles, the target on which they have been deployed will try to find available ports, configure needed entrypoints and restart the proxy to apply those changes. If ports did not change between deployments, this step will be skipped.

For now, those custom ports are handled by the same proxy container meaning a small unavailability will be observed when restarting the proxy. In the future, an option will be made available on a target to allow those ports to be handled by a sidecar traefik, see #62.

@YuukanOO YuukanOO merged commit cef099f into next May 19, 2024
5 checks passed
@YuukanOO YuukanOO deleted the feat/tcp-udp-ports branch May 19, 2024 14:58
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

Successfully merging this pull request may close these issues.

1 participant