fix bitcoin pathj

This commit is contained in:
openoms
2022-04-27 17:59:57 +01:00
parent 30a5cba090
commit 5a3ce11f95

View File

@@ -7,7 +7,7 @@
- [Install](#install) - [Install](#install)
- [Bitcoind in kubernetes helm](#bitcoind-in-kubernetes-helm) - [Bitcoind in kubernetes helm](#bitcoind-in-kubernetes-helm)
- [install](#install-1) - [install](#install-1)
- [logs](#logs) - [monitor](#monitor)
- [copy chain](#copy-chain) - [copy chain](#copy-chain)
- [get bitcoind password](#get-bitcoind-password) - [get bitcoind password](#get-bitcoind-password)
- [Secrets](#secrets) - [Secrets](#secrets)
@@ -67,12 +67,16 @@ microk8s kubectl get service -n galoy
## install ## install
``` ```
helm install bitcoind galoy-repo/bitcoind helm install bitcoind galoy-repo/bitcoind
# monitor
kubectl describe pod bitcoind # bitcoind RPC can be accessed via port on the following DNS name from within your cluster:
# bitcoind.default.svc.cluster.local
``` ```
## logs ## monitor
``` ```
# monitor pod
kubectl describe pod bitcoind
# logs
sudo tail -f /var/snap/microk8s/common/default-storage/default-bitcoind-pvc-*/debug.log sudo tail -f /var/snap/microk8s/common/default-storage/default-bitcoind-pvc-*/debug.log
``` ```
@@ -80,6 +84,9 @@ sudo tail -f /var/snap/microk8s/common/default-storage/default-bitcoind-pvc-*/de
``` ```
# check storage # check storage
ls -la /var/snap/microk8s/common/default-storage ls -la /var/snap/microk8s/common/default-storage
# note user:group and permissions
sudo ls -la /var/snap/microk8s/common/default-storage/default-bitcoind-pvc-*
# stop with helm # stop with helm
helm uninstall bitcoind helm uninstall bitcoind
@@ -88,9 +95,10 @@ helm uninstall bitcoind
cd /mnt/hdd/*/bitcoin cd /mnt/hdd/*/bitcoin
# copy ./chainstate ./blocks ./indexes recursively and verbose # copy ./chainstate ./blocks ./indexes recursively and verbose
sudo rsync -rv ./chainstate ./blocks ./indexes \ sudo rsync -rv ./chainstate ./blocks ./indexes /var/snap/microk8s/common/default-storage/default-bitcoind-pvc-*/
/var/snap/microk8s/common/default-storage/container-registry-registry-claim-pvc-*/
# fix user:group
sudo chown -R user:3000 /var/snap/microk8s/common/default-storage/default-bitcoind-pvc-*
# restart with helm # restart with helm
helm install bitcoind galoy-repo/bitcoind helm install bitcoind galoy-repo/bitcoind
``` ```