File tree 4 files changed +19
-12
lines changed
charts/bitcoincore/charts/lnd/templates
plugins/simln/charts/simln/templates
4 files changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ metadata:
4
4
name : {{ include "lnd.fullname" . }}
5
5
labels :
6
6
{{- include "lnd.labels" . | nindent 4 }}
7
+ role : macaroon-ref
7
8
data :
8
9
lnd.conf : |
9
10
{{- .Values.baseConfig | nindent 4 }}
37
38
AwEHoUQDQgAEBVltIvaTlAQI/3FFatTqVflZuZdRJ0SmRMSJrFLPtp0fxE7hmteS
38
39
t6gjQriy90fP8j9OJXBNAjt915kLY4zVvg==
39
40
-----END EC PRIVATE KEY-----
40
-
41
+ MACAROON_HEX : 0201036c6e6402f801030a1062beabbf2a614b112128afa0c0b4fdd61201301a160a0761646472657373120472656164120577726974651a130a04696e666f120472656164120577726974651a170a08696e766f69636573120472656164120577726974651a210a086d616361726f6f6e120867656e6572617465120472656164120577726974651a160a076d657373616765120472656164120577726974651a170a086f6666636861696e120472656164120577726974651a160a076f6e636861696e120472656164120577726974651a140a057065657273120472656164120577726974651a180a067369676e6572120867656e657261746512047265616400000620b17be53e367290871681055d0de15587f6d1cd47d1248fe2662ae27f62cfbdc6
41
42
---
42
43
apiVersion : v1
43
44
kind : ConfigMap
Original file line number Diff line number Diff line change 17
17
IQDPofN0fEl5gTwCYhk3nZbjMqJhZ8BsSJ6K8XRhxr7zbwIhAPsgQCFOqUWg632O
18
18
NEO53OQ6CIqnpxSskjsFNH4ZBQOE
19
19
-----END CERTIFICATE-----
20
- admin.macaroon.hex : |
21
- 0201036c6e6402f801030a1062beabbf2a614b112128afa0c0b4fdd61201301a160a0761646472657373120472656164120577726974651a130a04696e666f120472656164120577726974651a170a08696e766f69636573120472656164120577726974651a210a086d616361726f6f6e120867656e6572617465120472656164120577726974651a160a076d657373616765120472656164120577726974651a170a086f6666636861696e120472656164120577726974651a160a076f6e636861696e120472656164120577726974651a140a057065657273120472656164120577726974651a180a067369676e6572120867656e657261746512047265616400000620b17be53e367290871681055d0de15587f6d1cd47d1248fe2662ae27f62cfbdc6
20
+ {{- $configMaps := lookup "v1" "ConfigMap" .Release.Namespace "" }}
21
+ {{- range $configMaps.items }}
22
+ {{- if and .metadata.labels (hasKey .metadata.labels "role") (eq (index .metadata.labels "role") "macaroon-ref") }}
23
+ admin.macaroon.hex : {{ index .data "MACAROON_HEX" | quote }}
24
+ {{- end }}
25
+ {{- end }}
Original file line number Diff line number Diff line change 1
- # Enable caddy, collectLogs and metricsExport to activate publish lnd-exporter metrics
2
- caddy :
3
- enabled : false
1
+ # enable collectLogs and metricsExport to activate publish lnd-exporter metrics
4
2
5
3
# Core configs
6
4
image :
22
20
prometheusMetricsPort : 9332
23
21
extraContainers :
24
22
- name : lnd-exporter
25
- image : bitdonkey/lnd-exporter:0.1.2
23
+ image : bitdonkey/lnd-exporter:0.1.3
26
24
imagePullPolicy : IfNotPresent
25
+ volumeMounts :
26
+ - mountPath : /macaroon.hex
27
+ name : config
28
+ subPath : MACAROON_HEX
27
29
env :
28
- - name : ADMIN_MACAROON_HEX
29
- value : 0201036c6e6402f801030a1062beabbf2a614b112128afa0c0b4fdd61201301a160a0761646472657373120472656164120577726974651a130a04696e666f120472656164120577726974651a170a08696e766f69636573120472656164120577726974651a210a086d616361726f6f6e120867656e6572617465120472656164120577726974651a160a076d657373616765120472656164120577726974651a170a086f6666636861696e120472656164120577726974651a160a076f6e636861696e120472656164120577726974651a140a057065657273120472656164120577726974651a180a067369676e6572120867656e657261746512047265616400000620b17be53e367290871681055d0de15587f6d1cd47d1248fe2662ae27f62cfbdc6
30
30
- name : METRICS
31
31
value : >
32
32
lnd_balance_channels=parse("/v1/balance/channels","balance")
Original file line number Diff line number Diff line change @@ -18,11 +18,13 @@ nodes:
18
18
prometheusMetricsPort : 9332
19
19
extraContainers :
20
20
- name : lnd-exporter
21
- image : bitdonkey/lnd-exporter:0.1.2
21
+ image : bitdonkey/lnd-exporter:0.1.3
22
22
imagePullPolicy : IfNotPresent
23
+ volumeMounts :
24
+ - mountPath : /macaroon.hex
25
+ name : config
26
+ subPath : MACAROON_HEX
23
27
env :
24
- - name : ADMIN_MACAROON_HEX
25
- value : 0201036c6e6402f801030a1062beabbf2a614b112128afa0c0b4fdd61201301a160a0761646472657373120472656164120577726974651a130a04696e666f120472656164120577726974651a170a08696e766f69636573120472656164120577726974651a210a086d616361726f6f6e120867656e6572617465120472656164120577726974651a160a076d657373616765120472656164120577726974651a170a086f6666636861696e120472656164120577726974651a160a076f6e636861696e120472656164120577726974651a140a057065657273120472656164120577726974651a180a067369676e6572120867656e657261746512047265616400000620b17be53e367290871681055d0de15587f6d1cd47d1248fe2662ae27f62cfbdc6
26
28
- name : METRICS
27
29
value : >
28
30
lnd_block_height=parse("/v1/getinfo","block_height")
You can’t perform that action at this time.
0 commit comments