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

Non-ephemeral host ports #1901

Open
igor-ritual opened this issue Dec 6, 2023 · 2 comments
Open

Non-ephemeral host ports #1901

igor-ritual opened this issue Dec 6, 2023 · 2 comments
Labels
feature request painful Painful bug sdk for bugs/FRs relating to our SDK

Comments

@igor-ritual
Copy link

Background & motivation

Currently all exposed port numbers on the host are ephemeral. This makes it challenging to debug with many services.

Desired behaviour

I propose to allow adding a host port to PortSpec to use non-ephemeral port numbers.

https://docs.kurtosis.com/api-reference/starlark-reference/port-spec/

How important is this to you?

Painful; the lack of this feature makes using Kurtosis frictionful.

What area of the product does this pertain to?

SDK: the Software Development Kit libraries - Typescript, Go, etc.

@github-actions github-actions bot added painful Painful bug sdk for bugs/FRs relating to our SDK labels Dec 6, 2023
@leeederek
Copy link
Contributor

Hey @igor-ritual! This is a great feature request. Other folks have asked for this too in #1475.

From the issue above, we currently have a workaround available called the public_port. Here's an example of its use in a real package by the NEAR Foundation: https://github.com/kurtosis-tech/near-package/blob/5923d58c79633134823875c8dd95d355a3b82a05/src/services/indexer.star#L70

We have plans in January 2024 to revamp how this API works to make it more first-class and easy to use.

I'd recommend you use the workaround suggested above for now, and then when we release the new way to define static port, we will help you migrate :)

@leeederek
Copy link
Contributor

Let's keep this open until Jan 2024 when we release the first-class implementation of static ports :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request painful Painful bug sdk for bugs/FRs relating to our SDK
Projects
None yet
Development

No branches or pull requests

2 participants