I’m trying to expose an ipfs node on a gke cluster by using Traefik as reverse proxy.
The Traefik instance is exposed to the internet with a gcp l4 loadbalancer, the ipfs node swarm port is added to Traefik with a TCP Route. A headless Kubernetes service does the link between the TCP route and the pod hosting the ifps daemon.
I can successfully make a connection on the Traefik IP with telnet on the swarm port:
⇒ telnet 22.214.171.124 4001
Connected to 126.96.36.199.
Escape character is ‘^]’.
However, when I try to request the dht from an other node, I get following error:
root@swarmpool-c2-traefik-swarm-c2-traefik-public-ss-0:/# ipfs dht findpeer QmSVjca1eEcC3RCa8fT3g99VZoF4E5tBxYDSGvcms8Tybw
Error: routing: not found
And if I try to connect to the peer, I get:
root@swarmpool-c2-traefik-swarm-c2-traefik-public-ss-0:/# ipfs swarm connect /ip4/188.8.131.52/tcp/4001/p2p/QmSVjca1eEcC3RCa8fT3g99VZoF4E5tBxYDSGvcms8Tybw
connect QmSVjca1eEcC3RCa8fT3g99VZoF4E5tBxYDSGvcms8Tybw success
root@swarmpool-c2-traefik-swarm-c2-traefik-public-ss-0:/# ipfs swarm peers
returns nothing …
Any idea about what is going on here ?
Thanks for your help
Edit: I also tried with a 0.4.23 node; in this case, I can’t successfully connect to the swarm port with telnet, I get a ‘connection reset by peer’ error