Score:0

How to add files to ipfs using ingress url from the command line tool - ipfs-cluster-ctl?

fi flag

I have deployed ipfs-cluster as a statefulset with 3 replicas in Azure Kubernetes cluster. Created loadbalancer service for ipfs and used the loadbalancer service ip to add files using ipfs-cluster-ctl like below,

ipfs-cluster-ctl --host /ip4/20.94.98.25/tcp/9094 add test.txt

The above command provides CID as an output. Sample output looks like,

added Qmeeyj7hldjsj9XCoLSK6dY7ZTVTt8YcjfHXAuTzhCrz test.txt

Now, I have created ingress using haproxy for the ipfs-cluster service and tried to access the added files using the ingress url, sample url looks like,

http://ipfs.testing.example.com/ipfs/Qmeeyj7hldjsj9XCoLSK6dY7ZTVTt8YcjfHXAuTzhCrz

The above url works fine and showing the file content of test.txt

But now I need to use the ingress url instead of loadbalancer ip to add files using ipfs-cluster-ctl. I don't find any reference to achieve this. Can anyone please guide me to add files to ipfs using ingress url.

Thanks in Advance!

David avatar
cn flag
What version of Ubuntu are you using?
Soundarya avatar
fi flag
I am using ubuntu v20.04
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.