Closed devcamcar closed 5 years ago
that’s correct, because you use ingress controller as an HTTP(s) proxy. Port 90 used for internal service routing behind ingress controller.
Right, I understand why, but there should be a way to have it send the correct endpoint.
Which endpoint you think is correct?
FYI, With an ingress controller you will use HTTP proxy environment variable to talk to Fn deployment. So, given endpoint is correct. Because it’s not the address you are talking to.
Going to close this, as per new README (https://github.com/fnproject/fn-helm#exposing-fn-services), with the ingress support as part of the chart you'll have multiple ingress rules created.
In order to talk to those services using their DNS names you'd need to set the ingress controller endpoint as your HTTP proxy:
curl -x http://<ingress-controller-endpoint>:80 api.fn.internal
{"goto":"https://github.com/fnproject/fn","hello":"world!"}
nginx-ingress only serves on 80/443 but
fn inspect function
incorrectly indicates that port 90 should be used: