Deploy NEAR Validator Node
In this tutorial, we will learn how to deploy a NEAR validator node, and load a validator key into it.
Generate Validator Key
Generate validator account using NEAR CLI tool. Which can be installed using:
Validator account must have the name validator.
An ed25519 private key will be generated and saved in current user home directory under .near-credentials/testnet
It will return an output similar to the following
Change private_key
field to secret_key
.
Generate Secret for Validator Private Key
Create a Kubernetes secret from the generated private key in the previous step:
Deploy NEAR Validator Node
The following manifest describes a NEAR node that syncs NEAR testnet network: testnet
, enables HTTP JSON-RPC server rpc: true
, loads validator key from the Kubernetes secret that we've created in the previous step, and uses NEAR Core client:
Apply near.yaml
manifest:
Kotal operator will notice your near-node
and will create all the necessary pods, persistent volumes, services, configmaps, and secrets neccessary.
You can fetch the deployed NEAR Node
using:
It will return an output similar to the following:
Note that validator is true in the prevous output 😇
Fetch Node Logs
Get the pods that has been created by Kotal for the node:
It will return an output similar to the following:
Get the logs of the running node:
It will return node logs similar to the following:
Finally you can delete the node by:
Kubernetes garbage collector will delete all the resources that has been created by Kotal NEAR Node
controller.
Further Reading
Last updated