Skip to content

Commit 51e2f61

Browse files
committed
template: add extracontainers for circuitbreaker
1 parent a1c8645 commit 51e2f61

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

resources/networks/hello/network.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,38 @@ nodes:
3232
target: tank-0004-ln
3333
capacity: 100000
3434
push_amt: 50000
35+
extraContainers:
36+
- name: circuitbreaker
37+
securityContext:
38+
privileged: true
39+
capabilities:
40+
add:
41+
- NET_ADMIN
42+
- NET_RAW
43+
image: camillarhi/circuitbreaker:latest
44+
imagePullPolicy: IfNotPresent
45+
args:
46+
- "--network=regtest"
47+
- "--rpcserver=localhost:10009"
48+
- "--tlscertpath=/root/.lnd/tls_copy.cert"
49+
- "--macaroonpath=/root/.lnd/data/chain/bitcoin/regtest/admin.macaroon"
50+
- "--httplisten=0.0.0.0:9235"
51+
volumeMounts:
52+
- name: lnd-data
53+
mountPath: /root/.lnd
54+
readinessProbe:
55+
exec:
56+
command:
57+
- /bin/sh
58+
- -c
59+
- |
60+
# Check if tls.cert exists and is readable
61+
test -f /root/.lnd/tls.cert && echo "tls.cert found" || exit 1
62+
# Check if admin.macaroon exists and is readable
63+
test -f /root/.lnd/data/chain/bitcoin/regtest/admin.macaroon && echo "macaroon found" || exit 1
64+
initialDelaySeconds: 10
65+
periodSeconds: 5
66+
timeoutSeconds: 1
3567

3668
- name: tank-0004
3769
addnode:

0 commit comments

Comments
 (0)