2018-05-19 21:54:37 +00:00
|
|
|
To initialise a network:
|
|
|
|
|
|
|
|
- delete everything (including persistant volume claim)
|
2018-06-07 13:38:08 +00:00
|
|
|
- deploy everything except the deployments
|
2018-06-23 23:51:32 +00:00
|
|
|
- wait until the job has finished, then deploy the deployments
|
2018-05-19 21:54:37 +00:00
|
|
|
|
2018-06-23 23:51:32 +00:00
|
|
|
Note on config
|
|
|
|
|
|
|
|
- Secrets and configmaps need to be generated from files
|
|
|
|
- Ideally everything would be in one file but kubectl doesn't scan directories yet: https://github.com/kubernetes/kubernetes/issues/62421
|
|
|
|
- `kubectl create secret generic kava-user-keys --from-file=./init/init-data --dry-run -o yaml > secret-user.yml`
|
|
|
|
- `kubectl create secret generic kava-node-config --from-file=./init/init-data/.kvd/config --dry-run -o yaml > secret-config.yml`
|
2018-05-19 21:54:37 +00:00
|
|
|
|
2018-06-23 23:51:32 +00:00
|
|
|
Examples of using light client with the node:
|
2018-05-19 21:54:37 +00:00
|
|
|
|
2018-06-23 23:51:32 +00:00
|
|
|
- Get the status `kvcli status --node <node's-url>:46657 --chain-id test-kava`
|
|
|
|
- Send coins `kvcli send --name <your-key-name> --to <receiver's-address> --amount 100KVA --node <node's-url>:46657 --chain-id test-kava`
|
|
|
|
- Run the light client daemon `kvcli rest-server --node <node's-url>:46657 --chain-id test-kava`
|
|
|
|
|