Deploy Filecoin Node

Deploy Node

kind: Node
  name: calibration-node
  network: calibration

This is a simple filecoin Node that joins calibration test network.

Let's deploy the node:

kubectl apply -f calibration.yaml

Kotal operator will notice your calibration-node and will create all the necessary pods, persistent volumes, services, configmaps, and secrets.

kubectl get peers

It will return an output similar to the following:

NAME                NETWORK        CLIENT
calibration-node    calibration    lotus

Fetch Node Logs

Get the pods created for the node:

kubectl get pods

It will return an output similar to the following:

NAME                  READY   STATUS    RESTARTS   AGE
calibration-node-0    1/1     Running   0          5m

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

Check the logs of the running node:

kubectl logs -f calibration-node-0

Finally you can delete the filecoin node and all its resources by

kubectl delete -f calibration.yaml

and kubernetes garbage collector will delete all resources created by the node controller.

Last updated