-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhl-install.sh
58 lines (43 loc) · 1.23 KB
/
hl-install.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Kubernetes Install Script to create a Hyperledger Fabric
# Date : 28-10-2016
# Version 0.3
# Author : James Buckett ([email protected])
# Commissioned by ANZ Bank under direction of Ben Smillie ([email protected])
#!/bin/bash -x
clear
echo "Create the hyperledger namespace"
kubectl create -f ns-hl.yml
sleep 5
export CONTEXT=$(kubectl config view | awk '/current-context/ {print $2}')
kubectl config set-context $CONTEXT --namespace=hyperledger-06
echo "Create the core-vm-endpoint Service"
kubectl create -f ep-hl-core.yml
kubectl create -f svc-hl-core.yml
sleep 5
echo "Installing Fabric Services"
echo "The wait is for GKE to assign EXTERNAL-IP"
kubectl create -f svc-hl-vp0.yml
sleep 5
kubectl create -f svc-hl-vp1.yml
sleep 5
kubectl create -f svc-hl-vp2.yml
sleep 5
kubectl create -f svc-hl-vp3.yml
sleep 5
kubectl create -f svc-hl-vp-lb.yml
sleep 300
kubectl get services
echo "Installing Validating Peer - vp0"
kubectl create -f dep-hl-vp0.yml
sleep 120
echo "Installing Validating Peer - vp1"
kubectl create -f dep-hl-vp1.yml
sleep 5
echo "Installing Validating Peer - vp2"
kubectl create -f dep-hl-vp2.yml
sleep 5
echo "Installing Validating Peer - vp3"
kubectl create -f dep-hl-vp3.yml
sleep 5
./svc-hosts.sh
echo "Done"