Deploy Filecoin Node
calibration.yaml
apiVersion: filecoin.kotal.io/v1alpha1
kind: Node
metadata:
name: calibration-node
spec:
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
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 spec.resources.storage
.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 modified 1yr ago