File tree Expand file tree Collapse file tree 4 files changed +19
-12
lines changed
charts/bitcoincore/charts/lnd/templates
plugins/simln/charts/simln/templates Expand file tree Collapse file tree 4 files changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ metadata:
44 name : {{ include "lnd.fullname" . }}
55 labels :
66 {{- include "lnd.labels" . | nindent 4 }}
7+ role : macaroon-ref
78data :
89 lnd.conf : |
910 {{- .Values.baseConfig | nindent 4 }}
3738 AwEHoUQDQgAEBVltIvaTlAQI/3FFatTqVflZuZdRJ0SmRMSJrFLPtp0fxE7hmteS
3839 t6gjQriy90fP8j9OJXBNAjt915kLY4zVvg==
3940 -----END EC PRIVATE KEY-----
40-
41+ MACAROON_HEX : 0201036c6e6402f801030a1062beabbf2a614b112128afa0c0b4fdd61201301a160a0761646472657373120472656164120577726974651a130a04696e666f120472656164120577726974651a170a08696e766f69636573120472656164120577726974651a210a086d616361726f6f6e120867656e6572617465120472656164120577726974651a160a076d657373616765120472656164120577726974651a170a086f6666636861696e120472656164120577726974651a160a076f6e636861696e120472656164120577726974651a140a057065657273120472656164120577726974651a180a067369676e6572120867656e657261746512047265616400000620b17be53e367290871681055d0de15587f6d1cd47d1248fe2662ae27f62cfbdc6
4142---
4243apiVersion : v1
4344kind : ConfigMap
Original file line number Diff line number Diff line change 1717 IQDPofN0fEl5gTwCYhk3nZbjMqJhZ8BsSJ6K8XRhxr7zbwIhAPsgQCFOqUWg632O
1818 NEO53OQ6CIqnpxSskjsFNH4ZBQOE
1919 -----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
42
53# Core configs
64image :
2220 prometheusMetricsPort : 9332
2321 extraContainers :
2422 - name : lnd-exporter
25- image : bitdonkey/lnd-exporter:0.1.2
23+ image : bitdonkey/lnd-exporter:0.1.3
2624 imagePullPolicy : IfNotPresent
25+ volumeMounts :
26+ - mountPath : /macaroon.hex
27+ name : config
28+ subPath : MACAROON_HEX
2729 env :
28- - name : ADMIN_MACAROON_HEX
29- value : 0201036c6e6402f801030a1062beabbf2a614b112128afa0c0b4fdd61201301a160a0761646472657373120472656164120577726974651a130a04696e666f120472656164120577726974651a170a08696e766f69636573120472656164120577726974651a210a086d616361726f6f6e120867656e6572617465120472656164120577726974651a160a076d657373616765120472656164120577726974651a170a086f6666636861696e120472656164120577726974651a160a076f6e636861696e120472656164120577726974651a140a057065657273120472656164120577726974651a180a067369676e6572120867656e657261746512047265616400000620b17be53e367290871681055d0de15587f6d1cd47d1248fe2662ae27f62cfbdc6
3030 - name : METRICS
3131 value : >
3232 lnd_balance_channels=parse("/v1/balance/channels","balance")
Original file line number Diff line number Diff line change @@ -18,11 +18,13 @@ nodes:
1818 prometheusMetricsPort : 9332
1919 extraContainers :
2020 - name : lnd-exporter
21- image : bitdonkey/lnd-exporter:0.1.2
21+ image : bitdonkey/lnd-exporter:0.1.3
2222 imagePullPolicy : IfNotPresent
23+ volumeMounts :
24+ - mountPath : /macaroon.hex
25+ name : config
26+ subPath : MACAROON_HEX
2327 env :
24- - name : ADMIN_MACAROON_HEX
25- value : 0201036c6e6402f801030a1062beabbf2a614b112128afa0c0b4fdd61201301a160a0761646472657373120472656164120577726974651a130a04696e666f120472656164120577726974651a170a08696e766f69636573120472656164120577726974651a210a086d616361726f6f6e120867656e6572617465120472656164120577726974651a160a076d657373616765120472656164120577726974651a170a086f6666636861696e120472656164120577726974651a160a076f6e636861696e120472656164120577726974651a140a057065657273120472656164120577726974651a180a067369676e6572120867656e657261746512047265616400000620b17be53e367290871681055d0de15587f6d1cd47d1248fe2662ae27f62cfbdc6
2628 - name : METRICS
2729 value : >
2830 lnd_block_height=parse("/v1/getinfo","block_height")
You can’t perform that action at this time.
0 commit comments