-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathlnd.yaml
More file actions
64 lines (64 loc) · 1.68 KB
/
lnd.yaml
File metadata and controls
64 lines (64 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
apiVersion: apps/v1
kind: Deployment
metadata:
name: lnd-deployment
labels:
app: lnd-app
tier: lnd
spec:
replicas: 1
selector:
matchLabels:
app: lnd-app
template:
metadata:
labels:
app: lnd-app
tier: lnd
spec:
volumes:
- name: lnd-pv-storage
persistentVolumeClaim:
claimName: lnd-pv-claim
containers:
- name: lnd
image: "lightninglabs/lnd:v0.16.0-beta"
imagePullPolicy: IfNotPresent
args:
- --bitcoin.active
- --bitcoin.mainnet
- --lnddir=/root/.lnd
- --bitcoin.node=bitcoind
- --tlsextradomain=lnd-service
- --rpclisten=0.0.0.0:10009
- --restlisten=0.0.0.0:8080
- --listen=0.0.0.0
- --bitcoind.rpchost=bitcoin-core-service
- --bitcoind.rpcpass=<RPC-Password>
- --bitcoind.rpcuser=<RPC-User>
- --bitcoind.zmqpubrawblock=tcp://bitcoin-core-service:28332
- --bitcoind.zmqpubrawtx=tcp://bitcoin-core-service:28333
- --db.backend=postgres
- --db.postgres.dsn=postgres://<lnd-postgres-user>:<lnd-postgres-pass>@lnd-postgres-service:5432/lndpostgresdb?sslmode=disable
- --wallet-unlock-password-file=/root/.lnd/wallet_password
volumeMounts:
- name: lnd-pv-storage
mountPath: "/root/.lnd"
---
apiVersion: v1
kind: Service
metadata:
name: lnd-service
labels:
tier: lnd
spec:
selector:
app: lnd-app
tier: lnd
ports:
- port: 10009
name: lnd-rpc-port
- port: 9735
name: lnd-peer-port
- port: 8080
name: lnd-http-port