0

I have been having issues for more than a week trying to get OpenFaaS to start on my WSL instance using a K8S cluster deployed by Docker Desktop.

I keep on getting this from the gateway and queueworker pods:

OpenFaaS Gateway - Community Edition (CE)

Version: 0.25.2 Commit: bc2eeff4678407583faec982c1c7d1da915dd60c
Timeouts: read=5m2s write=5m2s  upstream=5m0s
Function provider: http://127.0.0.1:8081/

2022/12/05 16:08:53 Async enabled: Using NATS Streaming.
2022/12/05 16:08:53 Opening connection to nats://nats.openfaas.svc.cluster.local:4222
2022/12/05 16:08:53 Connect: nats://nats.openfaas.svc.cluster.local:4222
2022/12/05 16:08:55 dial tcp 10.101.241.144:4222: i/o timeout

I have searched the openfaas website, github issues but nothing fixed my issue. One of the things I tried is to set the NO_PROXY environment variable using export no_proxy=".svc,.svc.cluster.local" but that did not fix it.

Not sure what to do. Here are the pods:

NAME                                 READY   STATUS             RESTARTS       AGE
alertmanager-7c456f4cdd-n6r6q        1/1     Running            0              68m
basic-auth-plugin-589ff48889-b8wkp   1/1     Running            0              68m
gateway-5989d8f775-2k795             1/2     CrashLoopBackOff   10 (39s ago)   27m
nats-64d9444b95-rpfhr                1/1     Running            0              68m
prometheus-68584f9786-mp7t4          1/1     Running            0              68m
queue-worker-97bcf9fb-zgk6z          0/1     CrashLoopBackOff   18 (26s ago)   68m

And the services:

NAME                TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)          AGE
alertmanager        ClusterIP   10.100.115.189   <none>        9093/TCP         69m
basic-auth-plugin   ClusterIP   10.105.160.116   <none>        8080/TCP         69m
gateway             ClusterIP   10.110.144.212   <none>        8080/TCP         69m
gateway-external    NodePort    10.103.2.255     <none>        8080:31112/TCP   69m
gateway-provider    ClusterIP   10.101.1.205     <none>        8081/TCP         69m
nats                ClusterIP   10.101.241.144   <none>        4222/TCP         69m
prometheus          ClusterIP   10.97.171.69     <none>        9090/TCP         69m

The nats service has the 4222 endpoint enabled on TCP.

I have opened an issue on the faas-netes github repo but not getting any help. I just opened an issue on the main faas Github repo asking for help.

What could be causing this issue?

Pierrick
  • 324
  • 1
  • 7
  • 16

0 Answers0