Deploy Filecoin Node
Kotal support for Filecoin is still very early, so we're not exposing lots of management and integration features.

Deploy Node

nerpa.yaml
1
apiVersion: filecoin.kotal.io/v1alpha1
2
kind: Node
3
metadata:
4
name: nerpa-node
5
spec:
6
network: nerpa
Copied!
This is a simple filecoin Node that joins nerpa test network.
Let's deploy the node:
1
kubectl apply -f nerpa.yaml
Copied!
Kotal operator will notice your nerpa-node and will create all the necessary pods, persistent volumes, services, configmaps, and secrets.
1
kubectl get peers
Copied!
It will return an output similar to the following:
1
NAME NETWORK CLIENT
2
nerpa-node nerpa lotus
Copied!

Fetch Node Logs

Get the pods created for the node:
1
kubectl get pods
Copied!
It will return an output similar to the following:
1
NAME READY STATUS RESTARTS AGE
2
nerpa-node-0 1/1 Running 0 5m
Copied!
If pod STATUS is Pending, most probably it's due to not enough cpu and memory, because Kotal allocates lots of cpu cores and memory for public nodes. The required node resources can be changed using spec.resources.cpu, spec.resources.memory, and spec.resources.storage.
Check the logs of the running node:
1
kubectl logs -f nerpa-node-0
Copied!
Finally you can delete the filecoin node and all its resources by
1
kubectl delete -f nerpa.yaml
Copied!
and kubernetes garbage collector will delete all resources created by the node controller.
Last modified 10d ago
Export as PDF
Copy link