Hello,
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 34.77.249.182 4001
Trying 34.77.249.182…
Connected to 34.77.249.182.
Escape character is ‘^]’.
�^� �U�`Q’��+��$�W~�AR�p�
��
h��dr@q
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/34.77.249.182/tcp/4001/p2p/QmSVjca1eEcC3RCa8fT3g99VZoF4E5tBxYDSGvcms8Tybw
connect QmSVjca1eEcC3RCa8fT3g99VZoF4E5tBxYDSGvcms8Tybw success
But a:
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