lnd
by duck
A golang implementation of a Lightning Network node
About this chart
LND
LND 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.
Introduction
This chart bootstraps a single LND node. The default docker image is taken from BTCPay Server's dockerhub repository. By default it runs a testnet node using neutrino.
Prerequisites
- Kubernetes 1.8+
- PV provisioner support
- Running Bitcoind (or a neutrino node to connect to)
Installing the Chart
To install the chart with the release name my-release:
$ helm install --name my-release fold/lnd
This command deploys a testnet instance of lnd on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
After the instance deploys you need to exec into the pod and create a new wallet. It will ask you to create a password that you will need in the next step.
NETWORK=testnet
MY_RELEASE=my-release
kubectl exec -it $(kubectl get pod -l "release=$MY_RELEASE" -o jsonpath='{.items[0].metadata.name}') -- lncli -n $NETWORK create
Now you can enable auto unlock for your wallet. Replace PASSWORD with your
password:
helm upgrade my-release fold/lnd --set autoUnlock=true --set autoUnlockPassword=PASSWORD
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm delete my-release
Configuration
The following tables list the configurable parameters of the lnd chart and their default values.
| Parameter | Description | Default |
|---|---|---|
image.repository | Image source repository name | thesisrobot/lnd |
image.tag | lnd release tag. | v0.14.1-beta |
image.pullPolicy | Image pull policy | IfNotPresent |
internalServices.rpcPort | RPC Port | 10009 |
externalServices.p2pPort | P2P Port | 9735 |
persistence.enabled | Save node state | true |
persistence.accessMode | ReadWriteOnce or ReadOnly | ReadWriteOnce |
persistence.size | Size of persistent volume claim | 5Gi |
resources | CPU/Memory resource requests/limits | {} |
configurationFile | Config file ConfigMap entry | |
autoUnlock | Automatically unlock the wallet | false |
autoUnlockPassword | Password used to unlock the wallet | |
loop.enable | Enable loop server | true |
loop.image.repository | Repository to use for loop | thesisrobot/loop |
loop.image.tag | Tag to use for loop | v0.11.1-beta |
pool.enable | Enable pool server | true |
pool.image.repository | Repository to use for pool | thesisrobot/pool |
pool.image.tag | Tag to use for pool | v0.3.3-alpha |
pool.newNodesOnly | Only buy channels from new nodes | false |
Deploy lnd with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has lnd on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartlnd is pinned at v0.3.9 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply