在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:Reposoft/kubernetes-ipfs开源软件地址:https://github.com/Reposoft/kubernetes-ipfs开源编程语言:开源软件介绍:IPFS cluster in KubernetesConfigures a small cluster-local ipfs swarm, with focus on http API access. A useful introduction, though with command line focus: https://medium.com/@ConsenSys/an-introduction-to-ipfs-9bba4860abd0. HowtoFirst create a key for your private swarm and upload using: kubectl apply -f ./00namespace.yml
kubectl -n ipfs create secret generic ipfs --from-file=./swarm.key Optionally configure service kubectl apply -f .`. The logs can confirm that your swarm is private: kubectl logs ipfs-0 | grep private
# "Swarm is limited to private network of peers with the swarm key" Check status of your swarmPeers (i.e. pods) find each other automagically. kubectl -n ipfs get pods -o wide
# Should include "/ip4/..." entries for the peers:
kubectl -n ipfs exec ipfs-0 -- ipfs swarm peers Ongoing investigationRemains to investigate this log output which repeats itself endlessly:
PersistenceNote that ipfs has no ambition to replicate all content across all nodes, as that would be very impractical for next generation internet :) TODO is distributed pin, like in ipfs-cluster (which reinvents too much of Kubernetes for our taste). TestingIP and port depends on your setup and the ipfs_api=$(minikube service -n ipfs --url api)
ipfs_ro=$(minikube service -n ipfs --url readonly)
echo '{"test":1}' > test1
curl -F "data=@./test1" $ipfs_api/api/v0/add
# {"Name":"test1","Hash":"QmSUFD7V8MfmLYEHWw9phnGEFhrjuYxGTgzEtMJuNoB6Jq"}
curl $ipfs_ro/ipfs/QmSUFD7V8MfmLYEHWw9phnGEFhrjuYxGTgzEtMJuNoB6Jq
# {"test":1} |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论