C-Lightning is an implementation of a Lightning Network Node. The Lightning Network is a “Layer 2” payment protocol that operates on top of a blockchain-based cryptocurrency. It features a peer-to-peer system for making micropayments of cryptocurrency through a network of bidirectional payment channels without delegating custody of funds.
Based on Fold’s lnd chart
This chart bootstraps a C-Lightning node. The default docker image is taken from Kwinten De Backer’s dockerhub repository. The docker image is the one from https://github.com/lightningd/plugins. It runs a mainnet node with the trustedcoin plugin installed, which relies on our Blockstream overlords and other block explorers to fetch blocks (so no local bitcoind is required). To run in a trustless way, fork the plugin and point it to your own block explorer.
You can create a secret with an extra c-lightning config file. Eg. if you want to use a postgres database:
echo "wallet=postgres://YOUR_POSTGRES_CONNECTION_STRING" >> lightning.conf
kubectl create secret generic c-lightning-extra-config --from-file=./lightning.conf
.lightning
directory)To install the chart with the release name my-release
:
$ git clone https://github.com/flitz-be/helm-charts
$ cd helm-charts/charts/c-lightning
$ helm upgrade --install my-release .
The following tables list the configurable parameters of the c-lightning chart and their default values.
Parameter | Description | Default |
---|---|---|
image.repository |
Image source repository name | kiwiidb/c-lightning |
image.tag |
c-lightning release tag. |
0.9.3 |
image.pullPolicy |
Image pull policy | IfNotPresent |
internalServices.rpcPort |
RPC Port | 9835 |
externalServices.p2pPort |
P2P Port | 9735 |
persistence.enabled |
Save node state | true |
persistence.accessMode |
ReadWriteOnce or ReadOnly | ReadWriteOnce |
extraConfig.enabled |
If you want to mount a secret as extra c-lightning config file | true |
extraConfig.secret |
Secret which contains extra c-ln config. Secret should have key lightning.conf |
c-lightning-extra-config |
persistence.size |
Size of persistent volume claim | 5Gi |
resources |
CPU/Memory resource requests/limits | {} |