akash-network / support

Akash Support and Issue Tracking
Apache License 2.0
5 stars 4 forks source link

Map container to external ports instead of ephemeral #58

Open patrickdaj opened 3 years ago

patrickdaj commented 3 years ago

Is your feature request related to a problem? Please describe. No ability to map container to external ports 1-to-1 other than port 80.

Describe the solution you'd like Create a method to map container to external ports 1-to-1 rather than using ephemeral.

Describe alternatives you've considered None.

Additional context None

hydrogen18 commented 3 years ago

@patrickdaj I don't think this is something we can do at this time. In the future Akash would like to support this, but I can't provide a time table of features like this.

For additional information, a provider tells Kubernetes to assign a random port number from a range to each deployment that needs one. This gets exposed directly on the cluster node. The cluster configuration allows this to be reachable from any node in the cluster. In the future, to support 1-to-1 mapping as you've indicated the provider will need to have a concept of a reserved IP that is declared in the SDL. Providers may choose to charge additional fees per IP that is used. At deployment time, the provider will forward traffic to your deployments when it arrives at the leased IP address.