<p>I want to submit a function (via http-trigger) from a NodeJS process to kubeless but I do not want to use the javascript equivalent of </p>

<pre><code>curl --data '{"term":"Albemarle"}' localhost:8080/api/v1/proxy/namespaces/default/services/bikesearch/ --header "Content-Type:application/json"
</code></pre>

<p>because that needs me to know the actual IP address of the service running the function. I want to be able to access the kubeless api that gives me the level of indirection by just knowing the name of the function </p>

<pre><code>kubeless function call bikesearch --data '{"term":"Albemarle"}'
</code></pre>

<p>Is there anyway to access the above ( function call ) api via node?</p>

<p>kubeless also creates services for functions, so you should able to just do a http get to <code>http://bikesearch:8080</code> if your DNS setup is working and your application is in the same namespace. If you are in another namespace you need to use a more qualified name, e.g. <code>bikesearch.&lt;function-namespace&gt;svc.cluster.local</code></p>

<p>If you want to call the function from outside the k8s cluster, you might want to create an Ingress with <code>kubeless ingress create...</code></p>
