apache / openwhisk-deploy-kube

The Apache OpenWhisk Kubernetes Deployment repository supports deploying the Apache OpenWhisk system on Kubernetes and OpenShift clusters.
https://openwhisk.apache.org/
Apache License 2.0
296 stars 228 forks source link

How to perform HTTP requests from an action #715

Closed Sladerix closed 2 years ago

Sladerix commented 2 years ago

Hi everyone, i've a doubt.. i've a python http server running on my host pc, then i've a OpenWhisk deployment running on kubernetes that comes with docker.

I've an action that needs to make HTTP requests to the server running on my machine... but it fails because cannot reach the server, probably due to the separation made by docker (?)...

there is a simple way to solve the thing?

Thanks in advance

dimgiagos44 commented 2 years ago

Maybe one approach is to deploy the HTTP server as a pod(Cluster-IP) in Kubernetes and then make your calls to that specific endpoint...Not sure though if that is the best you can do

Sladerix commented 2 years ago

Maybe one approach is to deploy the HTTP server as a pod(Cluster-IP) in Kubernetes and then make your calls to that specific endpoint...Not sure though if that is the best you can do

thansk for the tip :D