akash-network / support

Akash Support and Issue Tracking
5 stars 4 forks source link

expose all deployment's ingresses to the container #44

Open arno01 opened 2 years ago

arno01 commented 2 years ago

It'd be cool to have all the expose.accept HTTP URI's specified by the user in SDL file available in the container via the environment variable. This way the apps/scripts running within the containers will be aware of all the externally exposed uri's.

As well as having the provider's ingress address exposed as an environment variable will be useful when exposing a service over non-80/443 port, i.e. K8s's nodePort --service-node-port-range (default: 30000-32767).

hydrogen18 commented 2 years ago

This makes a degree of sense and shouldn't be too difficult. We'd need to setup a standard for how it is done, but I guess we can just base it off that strange (albeit functional) way that Kubernetes maps internal services between containers to environmental variables.