Deploy Kusama Validator
Deploy Kusama Node
The following manifest describes Kusama node that syncs Kusama relay chain network: kusama, in archive mode pruning: false, and uses Parity Polkadot client:
apiVersion: polkadot.kotal.io/v1alpha1
kind: Node
metadata:
name: kusama-node
spec:
network: kusama
pruning: falseApply kusama.yaml manifest:
kubectl apply -f kusama.yamlKotal operator will notice your kusama-node and will create all the necessary pods, persistent volumes, services, configmaps, and secrets neccessary.
You can fetch the deployed Polkadot Node using:
kubectl get nodes.polkadotIt will return an output similar to the following:
NAME NETWORK VALIDATOR
kusama-node kusama fasleFetch 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:
Enable Validator
Once the node is fully synced, enable validator by updating the node with validator: true:
Apply the updated kusama.yaml Node manifest:
Fetch the deployed Polkadot Node using:
It will return an output similar to the following:
Note that validator has changed from false to true.
Remaining Steps
The remainig steps in setting up a validator are:
Bonding KSM
Generating Session Keys
Setting Session Keys by signing and submitting an extrinsic
Relax ποΈ
These steps are documented in Polkadot Wiki.
We will cover next how to generate a session key.
Generating Session Key
Validator nodes can't enable external HTTP or WS JSON-RPC servers.
Session key can be generated by calling author_rotateKeys JSON-RPC method.
Forward localhost:9933 calls to the node pod because rpcPort: 9933:
In another terminal window call author_rotateKeys JSON-RPC method to get a new session key:
You will get JSON result similar to the following:
You can set the sesison key as documented in Polkadot Wiki.
Finally you can delete the node by:
Kubernetes garbage collector will delete all the resources that has been created by Kotal Polkadot Node controller.
Last updated
Was this helpful?