flyte icon indicating copy to clipboard operation
flyte copied to clipboard

feat: add custom port support for sandbox

Open muskan-creates352 opened this issue 6 months ago • 0 comments

Tracking issue

Closes #7346

Why are the changes needed?

Currently the sandbox uses fixed port mappings internally, so users cannot run the sandbox on custom ports when the default ones are already occupied. This makes local development difficult in environments where those ports are unavailable.

What changes were proposed in this pull request?

  • Added support for custom sandbox port mappings through a new --ports flag.
  • Updated sandbox configuration to accept multiple port mappings.
  • Modified sandbox startup logic to use user-provided ports when supplied.
  • Kept the existing default behavior unchanged when custom ports are not passed.

Example:

flytectl sandbox start --ports 8080:30081

How was this patch tested?

  • Ran go build ./...
  • Verified that flytectl sandbox start --help shows the new --ports option.
  • Confirmed the sandbox startup flow compiles successfully with custom port configuration support.

muskan-creates352 avatar May 10 '26 06:05 muskan-creates352