Making native Kubeless calls via REST Making native Kubeless calls via REST kubernetes kubernetes

Making native Kubeless calls via REST


kubeless also creates services for functions, so you should able to just do a http get to http://bikesearch:8080 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. bikesearch.<function-namespace>svc.cluster.local

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


If DNS is correctly configured for your cluster, you can also directly access the Kubernetes master under the kubernetes DNS name.

Another way is environment variables. Kubernetes itself is registered as a service, so you can use the KUBERNETES_SERVICE_HOST environment variable.

For newer Kubernetes versions you have to authenticate, so have a look at how to access the API server from within a pod.