-
Notifications
You must be signed in to change notification settings - Fork 230
/
deploy.yaml
118 lines (106 loc) · 4.03 KB
/
deploy.yaml
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
---
version: "2.0"
endpoints:
nodeendpoint-pg:
kind: ip
services:
node:
image: harbor.status.im/wakuorg/nwaku:v0.31.0
expose:
- port: 60000
as: 60000
proto: tcp
to:
- global: true
ip: nodeendpoint-pg
- port: 8003
as: 8003
proto: tcp
to:
- global: true
ip: nodeendpoint-pg
- port: 9005
proto: udp
to:
- global: true
ip: nodeendpoint-pg
env:
#Mandatory
- IP_ADDR=
#Optional
- NODEKEY=
command:
- sh
- '-c'
args:
- >
if [ -z "${IP_ADDR}" ]; then
echo "You need to provide the IP leased to this service in \$IP_ADDR env var"
sleep 120
exit 1
fi
if [ "${NODEKEY}" != "" ]; then
NODEKEY=--nodekey=${NODEKEY}
fi
exec "/usr/bin/wakunode"\
--relay=true\
--filter=true\
--lightpush=true\
--peer-exchange=true\
--keep-alive=true\
--max-connections=150\
--cluster-id=16\
--shard=1 \
--shard=32 \
--shard=64 \
--shard=128 \
--shard=256 \
--pubsub-topic="/waku/2/rs/16/1"\
--pubsub-topic="/waku/2/rs/16/32"\
--pubsub-topic="/waku/2/rs/16/64"\
--pubsub-topic="/waku/2/rs/16/128"\
--pubsub-topic="/waku/2/rs/16/256"\
--protected-topic="/waku/2/rs/16/1:0461747a1b31c242d5d116baec75d6c2add6335aead6092ab2fa7eeaacd8fc9af2905207ebff8eed1c52e7c67ffa31ec830448e6c91524acdde6073f7c488db7c0"\
--protected-topic="/waku/2/rs/16/128:045ced3b90fabf7673c5165f9cc3a038fd2cfeb96946538089c310b5eaa3a611094b27d8216d9ec8110bd0e0e9fa7a7b5a66e86a27954c9d88ebd41d0ab6cfbb91"\
--protected-topic="/waku/2/rs/16/256:049022b33f7583f34463f5b7622e5da29f99f993e6858a478465c68ee114ccf142204eff285ed922349c4b71b178a2e1a2154b99bcc2d8e91b3994626ffa9f1a6c"\
--max-msg-size="1024KiB" \
--discv5-discovery=true\
--discv5-udp-port=9005\
--discv5-enr-auto-update=True\
--log-level=DEBUG\
--tcp-port=30304\
--metrics-server=True\
--metrics-server-port=8003\
--metrics-server-address=0.0.0.0\
--rest=true\
--rest-admin=true\
--rest-address=0.0.0.0\
--rest-port=8645\
--nat=extip:${IP_ADDR}\
--store=false\
--discv5-bootstrap-node="enr:-QEKuED9AJm2HGgrRpVaJY2nj68ao_QiPeUT43sK-aRM7sMJ6R4G11OSDOwnvVacgN1sTw-K7soC5dzHDFZgZkHU0u-XAYJpZIJ2NIJpcISnYxMvim11bHRpYWRkcnO4WgAqNiVib290LTAxLmRvLWFtczMuc3RhdHVzLnByb2Quc3RhdHVzLmltBnZfACw2JWJvb3QtMDEuZG8tYW1zMy5zdGF0dXMucHJvZC5zdGF0dXMuaW0GAbveA4Jyc40AEAUAAQAgAEAAgAEAiXNlY3AyNTZrMaEC3rRtFQSgc24uWewzXaxTY8hDAHB8sgnxr9k8Rjb5GeSDdGNwgnZfg3VkcIIjKIV3YWt1Mg0" \
--discv5-bootstrap-node="enr:-QEcuED7ww5vo2rKc1pyBp7fubBUH-8STHEZHo7InjVjLblEVyDGkjdTI9VdqmYQOn95vuQH-Htku17WSTzEufx-Wg4mAYJpZIJ2NIJpcIQihw1Xim11bHRpYWRkcnO4bAAzNi5ib290LTAxLmdjLXVzLWNlbnRyYWwxLWEuc3RhdHVzLnByb2Quc3RhdHVzLmltBnZfADU2LmJvb3QtMDEuZ2MtdXMtY2VudHJhbDEtYS5zdGF0dXMucHJvZC5zdGF0dXMuaW0GAbveA4Jyc40AEAUAAQAgAEAAgAEAiXNlY3AyNTZrMaECxjqgDQ0WyRSOilYU32DA5k_XNlDis3m1VdXkK9xM6kODdGNwgnZfg3VkcIIjKIV3YWt1Mg0"\
--discv5-bootstrap-node="enr:-QEcuEAoShWGyN66wwusE3Ri8hXBaIkoHZHybUB8cCPv5v3ypEf9OCg4cfslJxZFANl90s-jmMOugLUyBx4EfOBNJ6_VAYJpZIJ2NIJpcIQI2hdMim11bHRpYWRkcnO4bAAzNi5ib290LTAxLmFjLWNuLWhvbmdrb25nLWMuc3RhdHVzLnByb2Quc3RhdHVzLmltBnZfADU2LmJvb3QtMDEuYWMtY24taG9uZ2tvbmctYy5zdGF0dXMucHJvZC5zdGF0dXMuaW0GAbveA4Jyc40AEAUAAQAgAEAAgAEAiXNlY3AyNTZrMaEDP7CbRk-YKJwOFFM4Z9ney0GPc7WPJaCwGkpNRyla7mCDdGNwgnZfg3VkcIIjKIV3YWt1Mg0"\
${NODEKEY}\
${EXTRA_ARGS}
profiles:
compute:
node:
resources:
cpu:
units: 1
memory:
size: 2Gi
storage:
- size: 1Gi
placement:
dcloud:
pricing:
node:
denom: uakt
amount: 100000
deployment:
node:
dcloud:
profile: node
count: 1