-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlnd-us-east4.yaml
134 lines (134 loc) · 2.81 KB
/
lnd-us-east4.yaml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: lnd-1
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
gcePersistentDisk:
pdName: lnd-1
fsType: ext4
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: lnd-1
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
---
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: lnd
spec:
serviceName: lnd
replicas: 1
template:
metadata:
labels:
app: lnd
spec:
containers:
- name: lnd
image: us.gcr.io/ompldr/lnd:latest
args: [
"--configfile=/lnd/lnd.conf",
"--externalip=35.186.169.52",
"--noencryptwallet",
"--bitcoin.active",
"--bitcoin.testnet",
"--alias=ompldr-us-east",
"--bitcoin.node=bitcoind",
"--bitcoind.rpchost=bitcoind-internal.default",
"--bitcoind.rpcuser=whatup",
"--bitcoind.rpcpass=bro",
"--bitcoind.zmqpath=tcp://bitcoind-internal.default:18501",
"--tlscertpath=/ssl-certs/lnd-internal.default.crt",
"--tlskeypath=/ssl-certs/lnd-internal.default.key",
"--adminmacaroonpath=/macaroons/admin.macaroon",
"--debuglevel=info",
]
resources:
requests:
cpu: "0.25"
memory: "0.5Gi"
ports:
- containerPort: 9735
name: lnd-peers
- containerPort: 10009
name: lnd-rpc
volumeMounts:
- name: lnd-1
mountPath: /root/.lnd
- name: ssl-certs
mountPath: /ssl-certs
readOnly: true
- name: macaroons
mountPath: /macaroons
readOnly: true
readinessProbe:
tcpSocket:
port: 10009
initialDelaySeconds: 120
periodSeconds: 5
livenessProbe:
tcpSocket:
port: 10009
initialDelaySeconds: 120
periodSeconds: 5
volumes:
- name: ssl-certs
secret:
secretName: ssl-certs
- name: macaroons
secret:
secretName: macaroons
updateStrategy:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
name: lnd-1
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 10Gi
---
apiVersion: v1
kind: Service
metadata:
name: lnd-internal
labels:
app: lnd
annotations:
cloud.google.com/load-balancer-type: "Internal"
spec:
selector:
app: lnd
ports:
- port: 10009
name: lnd-rpc
targetPort: 10009
---
apiVersion: v1
kind: Service
metadata:
name: lnd-external
labels:
app: lnd
spec:
type: LoadBalancer
selector:
app: lnd
ports:
- port: 9735
name: lnd-peers
targetPort: 9735
loadBalancerIP: 35.186.169.52