Skip to content

Commit da1cb41

Browse files
committed
connect to the local lnd node and access circuit breaker from the UI
1 parent f01f383 commit da1cb41

File tree

4 files changed

+19
-14
lines changed

4 files changed

+19
-14
lines changed

resources/networks/hello/network.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ plugins: # Each plugin section has a number of hooks available (preDeploy, post
7070
circuitbreaker:
7171
entrypoint: "../../plugins/circuitbreaker"
7272
podName: "circuitbreaker-pod"
73-
rpcserver: "tank-0000-ln:10009"
73+
rpcserver: "172.29.34.166:10009"
7474
httplisten: "0.0.0.0:9235"
7575
preNode: # preNode plugins run before each node is deployed
7676
hello:

resources/plugins/circuitbreaker/charts/circuitbreaker/templates/configmap.yaml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,19 @@ metadata:
55
data:
66
tls.cert: |
77
-----BEGIN CERTIFICATE-----
8-
MIIB8TCCAZagAwIBAgIUJDsR6mmY+TaO9pCfjtotlbOkzJMwCgYIKoZIzj0EAwIw
9-
MjEfMB0GA1UECgwWbG5kIGF1dG9nZW5lcmF0ZWQgY2VydDEPMA0GA1UEAwwGd2Fy
10-
bmV0MB4XDTI0MTExMTE2NTM1MFoXDTM0MTEwOTE2NTM1MFowMjEfMB0GA1UECgwW
11-
bG5kIGF1dG9nZW5lcmF0ZWQgY2VydDEPMA0GA1UEAwwGd2FybmV0MFkwEwYHKoZI
12-
zj0CAQYIKoZIzj0DAQcDQgAEBVltIvaTlAQI/3FFatTqVflZuZdRJ0SmRMSJrFLP
13-
tp0fxE7hmteSt6gjQriy90fP8j9OJXBNAjt915kLY4zVvqOBiTCBhjAOBgNVHQ8B
14-
Af8EBAMCAqQwEwYDVR0lBAwwCgYIKwYBBQUHAwEwDwYDVR0TAQH/BAUwAwEB/zAd
15-
BgNVHQ4EFgQU5d8QMrwhLgTkDjWA+eXZGz+dybUwLwYDVR0RBCgwJoIJbG9jYWxo
16-
b3N0ggEqhwR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c0b4fdd61201301a160a0761646472657373120472656164120577726974651a130a04696e666f120472656164120577726974651a170a08696e766f69636573120472656164120577726974651a210a086d616361726f6f6e120867656e6572617465120472656164120577726974651a160a076d657373616765120472656164120577726974651a170a086f6666636861696e120472656164120577726974651a160a076f6e636861696e120472656164120577726974651a140a057065657273120472656164120577726974651a180a067369676e6572120867656e657261746512047265616400000620b17be53e367290871681055d0de15587f6d1cd47d1248fe2662ae27f62cfbdc6
23+
0201036C6E6402F801030A107EC4D3E96DE93FA58F70968A1729AE6C1201301A160A0761646472657373120472656164120577726974651A130A04696E666F120472656164120577726974651A170A08696E766F69636573120472656164120577726974651A210A086D616361726F6F6E120867656E6572617465120472656164120577726974651A160A076D657373616765120472656164120577726974651A170A086F6666636861696E120472656164120577726974651A160A076F6E636861696E120472656164120577726974651A140A057065657273120472656164120577726974651A180A067369676E6572120867656E65726174651204726561640000062023AFC3BF7DB1D186342905D79461793FFCB59F583858F495C253F0A1EB4D33C2

resources/plugins/circuitbreaker/charts/circuitbreaker/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ configmapVolume:
1010
name: configmap-volume
1111
mountPath: /configmap
1212
lnd:
13-
rpcserver: "host.docker.internal:10009" # Default LND RPC server address
13+
rpcserver: "172.29.34.166:10009" # Default LND RPC server address
1414
httplisten: "0.0.0.0:9235" # Default HTTP listen address

resources/plugins/circuitbreaker/plugin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ def _launch_pod(ctx,
197197
f"--set podName={podName} --set rpcserver={rpcserver} --set httplisten={httplisten}"
198198
)
199199

200+
# Use this to port-forward the circuitbreaker pod to localhost
201+
# kubectl port-forward pod/circuitbreaker-circuitbreaker 9235:9235
202+
200203
log.info(command)
201204
log.info(run_command(command))
202205

0 commit comments

Comments
 (0)