| 1234567891011121314151617181920 |
- #!/bin/bash
- . ./inc/utils.sh
-
- NS=besu
- POD=besu-node-validator-1-0
-
- mkdir -p blockchain-info
-
- # kubectl describe pod $POD -n $NS > blockchain-info/$POD-info.txt
- # kubectl describe configmap besu-genesis -n $NS > blockchain-info/genesis-info.txt
-
- # save genesis.json configmap to genesis.json
- echo "saving genesis.json configmap to genesis.json"
- CM=$(kubectl describe configmap besu-genesis -n $NS)
- CM=${CM#*----}
- CM=${CM%BinaryData*}
-
- echo $CM > ./blockchain-info/genesis.json
- echo $(kubectl get secrets/besu-node-validator-1-keys -o json -n besu) > ./blockchain-info/validator1.secret.json
|