lnd

by duck

Helm chartv0.3.9App 0.14.1Verified publisher

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.

ParameterDescriptionDefault
image.repositoryImage source repository namethesisrobot/lnd
image.taglnd release tag.v0.14.1-beta
image.pullPolicyImage pull policyIfNotPresent
internalServices.rpcPortRPC Port10009
externalServices.p2pPortP2P Port9735
persistence.enabledSave node statetrue
persistence.accessModeReadWriteOnce or ReadOnlyReadWriteOnce
persistence.sizeSize of persistent volume claim5Gi
resourcesCPU/Memory resource requests/limits{}
configurationFileConfig file ConfigMap entry
autoUnlockAutomatically unlock the walletfalse
autoUnlockPasswordPassword used to unlock the wallet
loop.enableEnable loop servertrue
loop.image.repositoryRepository to use for loopthesisrobot/loop
loop.image.tagTag to use for loopv0.11.1-beta
pool.enableEnable pool servertrue
pool.image.repositoryRepository to use for poolthesisrobot/pool
pool.image.tagTag to use for poolv0.3.3-alpha
pool.newNodesOnlyOnly buy channels from new nodesfalse

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartlnd is pinned at v0.3.9 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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