-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f9a8cda
commit 13085c4
Showing
13 changed files
with
310 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
charts/shkeeper/templates/bitcoin-lightning/lnd/deploy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{{- if .Values.btc_lightning.enabled }} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: lightning-lnd | ||
namespace: {{ .Values.namespace }} | ||
labels: | ||
app: lightning-lnd | ||
spec: | ||
strategy: | ||
type: Recreate | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: lightning-lnd | ||
template: | ||
metadata: | ||
labels: | ||
app: lightning-lnd | ||
spec: | ||
containers: | ||
- name: lightning-lnd | ||
image: {{ .Values.btc_lightning.lnd.image }} | ||
args: | ||
- --wallet-unlock-password-file=/root/.lnd/wallet-password | ||
- --externalip=$(EXTERNAL_IP) | ||
- --listen=0.0.0.0:$(P2P_PORT) | ||
- --restlisten=0.0.0.0:8080 | ||
- --tlsextradomain=lightning-lnd-rest | ||
- --bitcoin.$(NETWORK) | ||
- --bitcoin.node=bitcoind | ||
- --bitcoind.rpchost=bitcoind | ||
- --bitcoind.rpcuser=$(BITCOIND_RPCUSER) | ||
- --bitcoind.rpcpass=$(BITCOIND_RPCPASS) | ||
- --bitcoind.zmqpubrawblock=tcp://bitcoind:28334 | ||
- --bitcoind.zmqpubrawtx=tcp://bitcoind:28335 | ||
env: | ||
- name: EXTERNAL_IP | ||
value: {{ .Values.external_ip }} | ||
- name: P2P_PORT | ||
value: {{ .Values.btc_lightning.lnd.p2p_port | quote }} | ||
- name: NETWORK | ||
value: {{ .Values.btc_lightning.network }} | ||
- name: BITCOIND_RPCUSER | ||
valueFrom: | ||
secretKeyRef: | ||
name: bitcoin-rpc | ||
key: username | ||
optional: false | ||
- name: BITCOIND_RPCPASS | ||
valueFrom: | ||
secretKeyRef: | ||
name: bitcoin-rpc | ||
key: password | ||
optional: false | ||
{{- range $name, $value := .Values.btc_lightning.lnd.extraEnv }} | ||
- name: {{ $name | quote }} | ||
value: {{ $value | quote }} | ||
{{- end }} | ||
ports: | ||
- containerPort: {{ .Values.btc_lightning.lnd.p2p_port }} | ||
name: p2p | ||
- containerPort: 8080 | ||
name: rest | ||
volumeMounts: | ||
- name: lightning-lnd | ||
mountPath: /root/.lnd | ||
volumes: | ||
- name: lightning-lnd | ||
persistentVolumeClaim: | ||
claimName: lightning-lnd | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: lightning-lnd | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
storageClassName: {{ .Values.storageClassName }} | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 10Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{{- if .Values.btc_lightning.enabled }} | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: lightning-lnd-p2p | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
selector: | ||
app: lightning-lnd | ||
ports: | ||
- name: p2p | ||
port: {{ .Values.btc_lightning.lnd.p2p_port }} | ||
targetPort: p2p | ||
type: LoadBalancer | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: lightning-lnd-rest | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
selector: | ||
app: lightning-lnd | ||
ports: | ||
- name: rest | ||
port: 8080 | ||
targetPort: rest | ||
{{ end }} |
59 changes: 59 additions & 0 deletions
59
charts/shkeeper/templates/bitcoin-lightning/rtl/deploy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{{- if .Values.btc_lightning.enabled }} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: lightning-rtl | ||
namespace: {{ .Values.namespace }} | ||
labels: | ||
app: lightning-rtl | ||
spec: | ||
strategy: | ||
type: Recreate | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: lightning-rtl | ||
template: | ||
metadata: | ||
labels: | ||
app: lightning-rtl | ||
spec: | ||
containers: | ||
- name: lightning-rtl | ||
image: {{ .Values.btc_lightning.rtl.image }} | ||
env: | ||
- name: LN_SERVER_URL | ||
value: {{ .Values.btc_lightning.lnd.rest_url }} | ||
- name: MACAROON_PATH | ||
value: /shared/data/chain/bitcoin/{{ .Values.btc_lightning.network }} | ||
- name: DB_DIRECTORY_PATH | ||
value: /persistent/database | ||
- name: CHANNEL_BACKUP_PATH | ||
value: /persistent/backups | ||
- name: RTL_SSO | ||
value: "1" | ||
- name: RTL_COOKIE_PATH | ||
value: /shared/rtl-cookie | ||
- name: LOGOUT_REDIRECT_LINK | ||
value: {{ .Values.btc_lightning.rtl.logout_redirect_link }} | ||
{{- range $name, $value := .Values.btc_lightning.rtl.extraEnv }} | ||
- name: {{ $name | quote }} | ||
value: {{ $value | quote }} | ||
{{- end }} | ||
ports: | ||
- containerPort: 3000 | ||
name: web | ||
|
||
volumeMounts: | ||
- name: lightning-rtl | ||
mountPath: /persistent | ||
- name: lightning-lnd | ||
mountPath: /shared | ||
volumes: | ||
- name: lightning-rtl | ||
persistentVolumeClaim: | ||
claimName: lightning-rtl | ||
- name: lightning-lnd | ||
persistentVolumeClaim: | ||
claimName: lightning-lnd | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: lightning-rtl | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
storageClassName: {{ .Values.storageClassName }} | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 10Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{- if .Values.btc_lightning.enabled }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: lightning-rtl | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
selector: | ||
app: lightning-rtl | ||
ports: | ||
- name: web | ||
port: 3000 | ||
targetPort: web | ||
type: LoadBalancer | ||
|
||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# LNDINIT_VERSION="v0.1.22-beta" | ||
# LND_VERSION="v0.18.3-beta" | ||
# docker build --build-arg LNDINIT_VERSION=$LNDINIT_VERSION --build-arg LND_VERSION=$LND_VERSION -t vsyshost/lndinit:${LNDINIT_VERSION}-lnd-${LND_VERSION} . | ||
# docker push vsyshost/lndinit:${LNDINIT_VERSION}-lnd-${LND_VERSION} | ||
|
||
ARG LNDINIT_VERSION="v0.1.22-beta" | ||
ARG LND_VERSION="v0.18.3-beta" | ||
|
||
FROM lightninglabs/lndinit:${LNDINIT_VERSION}-lnd-${LND_VERSION} | ||
COPY ./entrypoint.sh / | ||
ENTRYPOINT ["/entrypoint.sh"] |
Oops, something went wrong.