-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathdeploy
executable file
·73 lines (62 loc) · 2.59 KB
/
deploy
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
apk add gettext
export DB_INSTANCE='${DB_INSTANCE}'
export MEMORY_REQUEST="64Mi"
export CPU_REQUEST="200m"
export REPLICAS=1
export DB_DATABASE=neoscan-io
export WORKLOAD_NAME=sync-neoscan-io
export HOST=api.neoscan.io
export POOL_SIZE=20
export REGISTRY_PATH=${SYNC_REGISTRY_PATH}
envsubst < deployment.yaml > deployment-sync-neoscan-io.yaml
if [ -z "$STAGING" ]; then
export REPLICAS=2
else
export REPLICAS=1
fi
export MEMORY_REQUEST="1024Mi"
export CPU_REQUEST="2000m"
export WORKLOAD_NAME=api-neoscan-io
export REGISTRY_PATH=${API_REGISTRY_PATH}
export POOL_SIZE=20
envsubst < deployment.yaml > deployment-api-neoscan-io.yaml
kubectl apply -f deployment-pghero.yaml
kubectl apply -f deployment-psql.yaml
kubectl apply -f deployment-api-neoscan-io.yaml
kubectl apply -f deployment-sync-neoscan-io.yaml
export MEMORY_REQUEST="64Mi"
export CPU_REQUEST="200m"
export POOL_SIZE=2
export REPLICAS=1
export DB_DATABASE=nex-neoscan-testnet-io
export WORKLOAD_NAME=sync-nex-neoscan-testnet-io
export HOST=nex.neoscan-testnet.io
export NEO_SEEDS="http://5.35.241.70:10001;http://5.35.241.70:10002;http://5.35.241.70:10003;http://5.35.241.70:10004"
export TEST_NET="true"
export NEO_NOTIFICATIONS_SERVER=http://nexnotifications.neeeo.org/v1
export REGISTRY_PATH=${SYNC_REGISTRY_PATH}
envsubst < deployment.yaml > deployment-sync-nex-testnet-neoscan-io.yaml
export WORKLOAD_NAME=api-nex-neoscan-testnet-io
export REGISTRY_PATH=${API_REGISTRY_PATH}
envsubst < deployment.yaml > deployment-api-nex-testnet-neoscan-io.yaml
export POOL_SIZE=5
export DB_DATABASE=neoscan-testnet-io
export WORKLOAD_NAME=sync-neoscan-testnet-io
export HOST=neoscan-testnet.io
export NEO_SEEDS="http://api.otcgo.cn:20332;https://seed1.neo.org:20331;http://seed2.neo.org:20332;http://seed3.neo.org:20332;http://seed4.neo.org:20332;https://test1.cityofzion.io;https://test2.cityofzion.io;https://test3.cityofzion.io;https://test4.cityofzion.io;https://test5.cityofzion.io;http://seed5.neo.org:20332"
export TEST_NET="true"
export NEO_NOTIFICATIONS_SERVER=http://notiftest1.neeeo.org/v1
export REGISTRY_PATH=${SYNC_REGISTRY_PATH}
envsubst < deployment.yaml > deployment-sync-testnet-neoscan-io.yaml
export WORKLOAD_NAME=api-neoscan-testnet-io
export REGISTRY_PATH=${API_REGISTRY_PATH}
if [ -z "$STAGING" ]; then
export REPLICAS=2
else
export REPLICAS=1
fi
envsubst < deployment.yaml > deployment-api-testnet-neoscan-io.yaml
kubectl apply -f deployment-api-testnet-neoscan-io.yaml
kubectl apply -f deployment-sync-testnet-neoscan-io.yaml
kubectl apply -f deployment-api-nex-testnet-neoscan-io.yaml
kubectl apply -f deployment-sync-nex-testnet-neoscan-io.yaml