Skip to content

Commit 4c409fd

Browse files
committed
adjust cln to start grpc
1 parent 4df0c33 commit 4c409fd

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

resources/charts/bitcoincore/charts/cln/templates/configmap.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ data:
1818
announce-addr=dns:{{ include "cln.fullname" . }}:{{ .Values.P2PPort }}
1919
database-upgrade=true
2020
bitcoin-retry-timeout=600
21+
grpc-port={{ .Values.RPCPort }}
2122
---
2223
apiVersion: v1
2324
kind: ConfigMap

resources/charts/bitcoincore/charts/cln/templates/pod.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ spec:
3131
- name: p2p
3232
containerPort: {{ .Values.P2PPort }}
3333
protocol: TCP
34+
- name: rpc
35+
containerPort: {{ .Values.RPCPort }}
36+
protocol: TCP
3437
command:
3538
- /bin/sh
3639
- -c

resources/charts/bitcoincore/charts/cln/templates/service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,9 @@ spec:
1212
targetPort: p2p
1313
protocol: TCP
1414
name: p2p
15+
- port: {{ .Values.RPCPort }}
16+
targetPort: rpc
17+
protocol: TCP
18+
name: rpc
1519
selector:
1620
{{- include "cln.selectorLabels" . | nindent 4 }}

resources/charts/bitcoincore/charts/cln/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ service:
3232
type: ClusterIP
3333

3434
P2PPort: 9735
35-
RestPort: 3010
35+
RPCPort: 10013
3636

3737
# This block is for setting up the ingress for more information can be found here: https://kubernetes.io/docs/concepts/services-networking/ingress/
3838
ingress:

resources/plugins/simln/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,14 @@ def _generate_activity_json(activity: Optional[list[dict]]) -> str:
169169
port = 10009
170170
node = {"id": ln_name}
171171
if "cln" in ln_name:
172-
port = 9735
172+
port = 10013
173173
node["ca_cert"] = f"/working/{ln_name}-ca.pem"
174174
node["client_cert"] = f"/working/{ln_name}-client.pem"
175175
node["client_key"] = f"/working/{ln_name}-client-key.pem"
176176
else:
177177
node["macaroon"] = "/working/admin.macaroon"
178178
node["cert"] = "/working/tls.cert"
179-
node["address"] = f"{ln_name}:{port}"
179+
node["address"] = f"https://{ln_name}:{port}"
180180
nodes.append(node)
181181

182182
if activity:

0 commit comments

Comments
 (0)