openfaas / faas-netes

Serverless Functions For Kubernetes
https://www.openfaas.com
MIT License
2.12k stars 473 forks source link

Error checking connectivity, OpenFaaS CE cannot be run in an offline environment: #1203

Closed OKAYRO closed 5 months ago

OKAYRO commented 5 months ago

Hello, I have installed CE edition to check the AWS lambda function from a custom image, With helm installation of openfaas on AWS EKS ( with closed exit to the Internet) form local downloaded helm chat: helm install openfaas ./openfaas \
--namespace openfaas \ --set functionNamespace=openfaas-fn \ --set basic_auth=true

when trying to do : k logs -n openfaas deploy/gateway -c faas-netes

getting response: Error checking connectivity, OpenFaaS CE cannot be run in an offline environment: Get "https://checkip.amazonaws.com": dial tcp xxxxx:443: i/o timeout

and from the gateway logs: 2024-04-10 12:22:37.142Z gateway 2024/04/10 12:22:37 Error getting functions from: openfaas-fn, error: Get "http://127.0.0.1:8081/system/functions?namespace=openfaas-fn": dial tcp 127.0.0.1:8081: connect: connection refused 2024-04-10 12:22:41.658Z gateway 2024/04/10 12:22:41 error with upstream request to: /healthz, Get "http://127.0.0.1:8081/healthz": dial tcp 127.0.0.1:8081: connect: connection refused 2024-04-10 12:22:41.659Z gateway 2024/04/10 12:22:41 Forwarded [GET] to /healthz - [502] - 0.0003s 2024-04-10 12:22:41.659Z gateway 2024/04/10 12:22:41 error with upstream request to: /healthz, Get "http://127.0.0.1:8081/healthz": dial tcp 127.0.0.1:8081: connect: connection refused

alexellis commented 5 months ago

Hi, this is explained in the docs and on the website, it's a self-explanatory error.

If you'd like to run OpenFaaS in a commercial environment, then OpenFaaS Standard is the option for your team, you can try it out on a monthly basis if you like: https://openfaas.com/pricing

Alex