fnproject / ui

User interface for fn project.
Apache License 2.0
89 stars 21 forks source link

Run function not working as expected when run in k8s #46

Open lenalebt opened 6 years ago

lenalebt commented 6 years ago

When I run the fn ui via the helm chart in kubernetes and add an ingress to connect to the ui, it uses the cluster-internal FN_API_URL for running queries against the fn-api from the user's browser. This service is not available externally as long as there is no ingress configuration.

image

I think it should either use some proxying through the fn-ui, or allow an FN_EXTERNAL_API_URL to be set that will be used in these contexts. In my case, the fn api is available on fn-api.local. I am running this stuff within minikube for local development.

lenalebt commented 6 years ago

I found a workaround using https://github.com/superbrothers/minikube-ingress-dns which allows me to use the same DNS names from within the cluster and locally.

Nevertheless, it might be beneficial to be able to set a different URL for internal and external reachability.