forked from andy-backup/fibos-node-v1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-from-helm.sh
executable file
·42 lines (40 loc) · 1.13 KB
/
install-from-helm.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# install k3s
curl -sfL https://get.k3s.io | sh -
# install helm
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
# setup helm
mkdir ~/.kube
kubectl config view --raw >~/.kube/config
# add helm repo
helm repo add mingfunwong https://mingfunwong.github.io/helm-charts
# name
NAME=fibos-node-1
# enable block producers
PRODUCER_ENABLE=false
# block producer information
PRODUCER_NAME=
PUBLIC_KEY=
PRIVATE_KEY=
# enable the producer api
PRODUCER_API_ENABLE=false
# use a snapshot
SNAPSHOT_ENABLE=true
# snapshot url
SNAPSHOT_URL=https://github.com/andy-backup/fibos/raw/master/snapshot.bin
# enable provide
HTTP_ENABLE=false
# provide information
HTTP_HOST=
P2P_PORT=
# install fibos-node
helm install $NAME mingfunwong/fibos-node \
--set PRODUCER_ENABLE=$PRODUCER_ENABLE \
--set PRODUCER_NAME=$PRODUCER_NAME \
--set PUBLIC_KEY=$PUBLIC_KEY \
--set PRIVATE_KEY=$PRIVATE_KEY \
--set PRODUCER_API_ENABLE=$PRODUCER_API_ENABLE \
--set SNAPSHOT_ENABLE=$SNAPSHOT_ENABLE \
--set SNAPSHOT_URL=$SNAPSHOT_URL \
--set ingress.enabled=$HTTP_ENABLE \
--set ingress.hosts.host=$HTTP_HOST \
--set service.p2pPort=$P2P_PORT