πŸ“Ž
IPFS
IPFS is a distributed system for storing and accessing files, websites, applications, and data.
We've extended Kubernetes with Peer and ClusterPeer custom resources which can be used to deploy IPFS peers, swarms, and clusters from the given spec.

Peer

Peer is an ipfs peer running go-ipfs client and connecting to the public ipfs swarm or a private swarm secured by swarm key. Here's an example of a very basic ipfs peer connecting to the public ipfs swarm.
1
apiVersion: ipfs.kotal.io/v1alpha1
2
kind: Peer
3
metadata:
4
Name: simple-peer
5
spec: {}
Copied!
For all the fields associated with the Peer API resource:
1
kubectl explain peers --api-version ipfs.kotal.io/v1alpha1
2
kubectl explain peers.spec --api-version ipfs.kotal.io/v1alpha1
Copied!
Full ipfs peer reference is documented here.

ClusterPeer

ClusterPeer is an ipfs cluster peer running ipfs-cluster-service client, connecting to ipfs peer and optional bootstrap cluster peer(s). ClusterPeers provide data orchestration across a swarm of IPFS daemons by allocating, replicating and tracking a global pinset distributed among multiple peers. Here's an example of cluster peer connecting to ipfs peer.
1
apiVersion: ipfs.kotal.io/v1alpha1
2
kind: ClusterPeer
3
metadata:
4
Name: simple-cluster-peer
5
spec:
6
peerEndpoint: /dns4/simple-peer/tcp/5001
Copied!
For all the fields associated with the ClusterPeer API resource:
1
kubectl explain clusterpeers --api-version ipfs.kotal.io/v1alpha1
2
kubectl explain clusterpeers.spec --api-version ipfs.kotal.io/v1alpha1
Copied!
Full ipfs cluster peer reference is documented here.
Last modified 17d ago
Export as PDF
Copy link