From 5b5f091e5a836fc85b00160b56c377da6922b077 Mon Sep 17 00:00:00 2001 From: Stas Tarasenko Date: Thu, 19 Dec 2024 12:13:53 +0100 Subject: [PATCH 1/3] add if logic to enable/disable PVC provisioning --- charts/shkeeper/templates/bitcoin-lightning/lnd/pvc.yaml | 4 +++- charts/shkeeper/templates/bitcoin-lightning/rtl/pvc.yaml | 4 +++- charts/shkeeper/templates/monero/monero-wallet-rpc/pvc.yaml | 4 +++- charts/shkeeper/templates/monero/monerod/pvc.yaml | 4 +++- .../templates/persistentvolumeclaims/avalanche-fullnode.yaml | 2 ++ .../shkeeper/templates/persistentvolumeclaims/bitcoind.yaml | 4 +++- .../templates/persistentvolumeclaims/bnb-fullnode.yaml | 4 +++- .../shkeeper/templates/persistentvolumeclaims/dogecoind.yaml | 4 +++- .../templates/persistentvolumeclaims/ethereum-fullnode.yaml | 4 +++- .../shkeeper/templates/persistentvolumeclaims/litecoind.yaml | 4 +++- .../templates/persistentvolumeclaims/polygon-fullnode.yaml | 4 +++- .../templates/persistentvolumeclaims/tron-fullnode.yaml | 4 +++- .../templates/persistentvolumeclaims/tron-shkeeper.yaml | 4 +++- 13 files changed, 38 insertions(+), 12 deletions(-) diff --git a/charts/shkeeper/templates/bitcoin-lightning/lnd/pvc.yaml b/charts/shkeeper/templates/bitcoin-lightning/lnd/pvc.yaml index ecc0515..1fd89a4 100644 --- a/charts/shkeeper/templates/bitcoin-lightning/lnd/pvc.yaml +++ b/charts/shkeeper/templates/bitcoin-lightning/lnd/pvc.yaml @@ -1,3 +1,4 @@ +{{- if .Values.btc_lightning.enabled }} apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -9,4 +10,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 10Gi \ No newline at end of file + storage: 10Gi +{{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/bitcoin-lightning/rtl/pvc.yaml b/charts/shkeeper/templates/bitcoin-lightning/rtl/pvc.yaml index df03438..5d0d3b7 100644 --- a/charts/shkeeper/templates/bitcoin-lightning/rtl/pvc.yaml +++ b/charts/shkeeper/templates/bitcoin-lightning/rtl/pvc.yaml @@ -1,3 +1,4 @@ +{{- if .Values.btc_lightning.enabled }} apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -9,4 +10,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 10Gi \ No newline at end of file + storage: 10Gi +{{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/monero/monero-wallet-rpc/pvc.yaml b/charts/shkeeper/templates/monero/monero-wallet-rpc/pvc.yaml index 3e1fe46..e38d3c4 100644 --- a/charts/shkeeper/templates/monero/monero-wallet-rpc/pvc.yaml +++ b/charts/shkeeper/templates/monero/monero-wallet-rpc/pvc.yaml @@ -1,3 +1,4 @@ +{{- if .Values.monero.enabled }} apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -9,4 +10,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 10Gi \ No newline at end of file + storage: 10Gi +{{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/monero/monerod/pvc.yaml b/charts/shkeeper/templates/monero/monerod/pvc.yaml index 60150fd..705c4bb 100644 --- a/charts/shkeeper/templates/monero/monerod/pvc.yaml +++ b/charts/shkeeper/templates/monero/monerod/pvc.yaml @@ -1,3 +1,4 @@ +{{- if .Values.monero.fullnode.enabled }} apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -9,4 +10,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 20Gi \ No newline at end of file + storage: 20Gi +{{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/persistentvolumeclaims/avalanche-fullnode.yaml b/charts/shkeeper/templates/persistentvolumeclaims/avalanche-fullnode.yaml index d1428c1..11693ee 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/avalanche-fullnode.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/avalanche-fullnode.yaml @@ -1,3 +1,4 @@ +{{- if .Values.avalanche_fullnode.enabled }} apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -10,3 +11,4 @@ spec: resources: requests: storage: 1000Gi +{{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/persistentvolumeclaims/bitcoind.yaml b/charts/shkeeper/templates/persistentvolumeclaims/bitcoind.yaml index 62203c5..9008bd1 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/bitcoind.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/bitcoind.yaml @@ -1,3 +1,4 @@ +{{- if .Values.btc.enabled }} apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -9,4 +10,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 15Gi \ No newline at end of file + storage: 15Gi +{{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/persistentvolumeclaims/bnb-fullnode.yaml b/charts/shkeeper/templates/persistentvolumeclaims/bnb-fullnode.yaml index 654e81b..14e4821 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/bnb-fullnode.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/bnb-fullnode.yaml @@ -1,3 +1,4 @@ +{{- if .Values.bnb_fullnode.enabled }} apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -9,4 +10,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 3100Gi \ No newline at end of file + storage: 3100Gi +{{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/persistentvolumeclaims/dogecoind.yaml b/charts/shkeeper/templates/persistentvolumeclaims/dogecoind.yaml index abf5551..b128a22 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/dogecoind.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/dogecoind.yaml @@ -1,3 +1,4 @@ +{{- if .Values.doge.enabled }} apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -9,4 +10,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 15Gi \ No newline at end of file + storage: 15Gi +{{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/persistentvolumeclaims/ethereum-fullnode.yaml b/charts/shkeeper/templates/persistentvolumeclaims/ethereum-fullnode.yaml index 2ce6815..c78ebb7 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/ethereum-fullnode.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/ethereum-fullnode.yaml @@ -1,3 +1,4 @@ +{{- if .Values.eth_fullnode.enabled }} apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -9,4 +10,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 1000Gi \ No newline at end of file + storage: 1000Gi +{{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/persistentvolumeclaims/litecoind.yaml b/charts/shkeeper/templates/persistentvolumeclaims/litecoind.yaml index cea6cdd..43f71e3 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/litecoind.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/litecoind.yaml @@ -1,3 +1,4 @@ +{{- if .Values.ltc.enabled }} apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -9,4 +10,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 15Gi \ No newline at end of file + storage: 15Gi +{{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/persistentvolumeclaims/polygon-fullnode.yaml b/charts/shkeeper/templates/persistentvolumeclaims/polygon-fullnode.yaml index 6794361..fc261b9 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/polygon-fullnode.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/polygon-fullnode.yaml @@ -1,3 +1,4 @@ +{{- if .Values.polygon_fullnode.enabled }} apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -22,4 +23,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 1000Gi \ No newline at end of file + storage: 1000Gi +{{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/persistentvolumeclaims/tron-fullnode.yaml b/charts/shkeeper/templates/persistentvolumeclaims/tron-fullnode.yaml index 6876e8c..aa0c442 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/tron-fullnode.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/tron-fullnode.yaml @@ -1,3 +1,4 @@ +{{- if .Values.tron_fullnode.enabled }} apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -9,4 +10,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 2000Gi \ No newline at end of file + storage: 2000Gi +{{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/persistentvolumeclaims/tron-shkeeper.yaml b/charts/shkeeper/templates/persistentvolumeclaims/tron-shkeeper.yaml index e0d37d1..a4be29c 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/tron-shkeeper.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/tron-shkeeper.yaml @@ -1,3 +1,4 @@ +{{- if or .Values.trx.enabled .Values.usdt.enabled .Values.usdc.enabled}} apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -22,4 +23,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 1Gi \ No newline at end of file + storage: 1Gi +{{- end }} \ No newline at end of file From 81eddb1a950b227d613c4f4d860f9361aa3687ce Mon Sep 17 00:00:00 2001 From: Stas Tarasenko Date: Thu, 19 Dec 2024 13:46:06 +0100 Subject: [PATCH 2/3] move PVC size configuration to values.yaml --- .../templates/bitcoin-lightning/lnd/pvc.yaml | 2 +- .../templates/bitcoin-lightning/rtl/pvc.yaml | 2 +- charts/shkeeper/templates/mariadb/pvc.yaml | 2 +- .../monero/monero-wallet-rpc/pvc.yaml | 2 +- .../templates/monero/monerod/pvc.yaml | 2 +- .../avalanche-fullnode.yaml | 2 +- .../persistentvolumeclaims/bitcoind.yaml | 2 +- .../persistentvolumeclaims/bnb-fullnode.yaml | 2 +- .../persistentvolumeclaims/dogecoind.yaml | 2 +- .../ethereum-fullnode.yaml | 2 +- .../persistentvolumeclaims/litecoind.yaml | 2 +- .../polygon-fullnode.yaml | 4 +- .../persistentvolumeclaims/shkeeper.yaml | 2 +- .../persistentvolumeclaims/tron-fullnode.yaml | 2 +- .../persistentvolumeclaims/tron-shkeeper.yaml | 4 +- charts/shkeeper/values.yaml | 42 ++++++++++++++++++- 16 files changed, 58 insertions(+), 18 deletions(-) diff --git a/charts/shkeeper/templates/bitcoin-lightning/lnd/pvc.yaml b/charts/shkeeper/templates/bitcoin-lightning/lnd/pvc.yaml index 1fd89a4..98f5205 100644 --- a/charts/shkeeper/templates/bitcoin-lightning/lnd/pvc.yaml +++ b/charts/shkeeper/templates/bitcoin-lightning/lnd/pvc.yaml @@ -10,5 +10,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 10Gi + storage: {{ .Values.btc_lightning.lnd.storage.size }} {{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/bitcoin-lightning/rtl/pvc.yaml b/charts/shkeeper/templates/bitcoin-lightning/rtl/pvc.yaml index 5d0d3b7..a0eb1fd 100644 --- a/charts/shkeeper/templates/bitcoin-lightning/rtl/pvc.yaml +++ b/charts/shkeeper/templates/bitcoin-lightning/rtl/pvc.yaml @@ -10,5 +10,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 10Gi + storage: {{ .Values.btc_lightning.rtl.storage.size }} {{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/mariadb/pvc.yaml b/charts/shkeeper/templates/mariadb/pvc.yaml index ae25e5f..29dbfac 100644 --- a/charts/shkeeper/templates/mariadb/pvc.yaml +++ b/charts/shkeeper/templates/mariadb/pvc.yaml @@ -9,4 +9,4 @@ spec: - ReadWriteOnce resources: requests: - storage: 10Gi + storage: {{ .Values.mariadb.storage.size }} \ No newline at end of file diff --git a/charts/shkeeper/templates/monero/monero-wallet-rpc/pvc.yaml b/charts/shkeeper/templates/monero/monero-wallet-rpc/pvc.yaml index e38d3c4..8767b9e 100644 --- a/charts/shkeeper/templates/monero/monero-wallet-rpc/pvc.yaml +++ b/charts/shkeeper/templates/monero/monero-wallet-rpc/pvc.yaml @@ -10,5 +10,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 10Gi + storage: {{ .Values.monero.storage.size }} {{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/monero/monerod/pvc.yaml b/charts/shkeeper/templates/monero/monerod/pvc.yaml index 705c4bb..42e65a1 100644 --- a/charts/shkeeper/templates/monero/monerod/pvc.yaml +++ b/charts/shkeeper/templates/monero/monerod/pvc.yaml @@ -10,5 +10,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 20Gi + storage: {{ .Values.monero.fullnode.monerod.storage.size }} {{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/persistentvolumeclaims/avalanche-fullnode.yaml b/charts/shkeeper/templates/persistentvolumeclaims/avalanche-fullnode.yaml index 11693ee..fdae318 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/avalanche-fullnode.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/avalanche-fullnode.yaml @@ -10,5 +10,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 1000Gi + storage: {{ .Values.avalanche_fullnode.storage.size }} {{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/persistentvolumeclaims/bitcoind.yaml b/charts/shkeeper/templates/persistentvolumeclaims/bitcoind.yaml index 9008bd1..c8ef152 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/bitcoind.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/bitcoind.yaml @@ -10,5 +10,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 15Gi + storage: {{ .Values.btc.storage.size }} {{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/persistentvolumeclaims/bnb-fullnode.yaml b/charts/shkeeper/templates/persistentvolumeclaims/bnb-fullnode.yaml index 14e4821..0c7e2e4 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/bnb-fullnode.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/bnb-fullnode.yaml @@ -10,5 +10,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 3100Gi + storage: {{ .Values.bnb_fullnode.storage.size }} {{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/persistentvolumeclaims/dogecoind.yaml b/charts/shkeeper/templates/persistentvolumeclaims/dogecoind.yaml index b128a22..37a3e55 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/dogecoind.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/dogecoind.yaml @@ -10,5 +10,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 15Gi + storage: {{ .Values.doge.storage.size }} {{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/persistentvolumeclaims/ethereum-fullnode.yaml b/charts/shkeeper/templates/persistentvolumeclaims/ethereum-fullnode.yaml index c78ebb7..694a45b 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/ethereum-fullnode.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/ethereum-fullnode.yaml @@ -10,5 +10,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 1000Gi + storage: {{ .Values.eth_fullnode.storage.size }} {{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/persistentvolumeclaims/litecoind.yaml b/charts/shkeeper/templates/persistentvolumeclaims/litecoind.yaml index 43f71e3..97a2123 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/litecoind.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/litecoind.yaml @@ -10,5 +10,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 15Gi + storage: {{ .Values.ltc.storage.size }} {{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/persistentvolumeclaims/polygon-fullnode.yaml b/charts/shkeeper/templates/persistentvolumeclaims/polygon-fullnode.yaml index fc261b9..74b904d 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/polygon-fullnode.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/polygon-fullnode.yaml @@ -10,7 +10,7 @@ spec: - ReadWriteOnce resources: requests: - storage: 1000Gi + storage: {{ .Values.polygon_fullnode.heimdall.storage.size }} --- apiVersion: v1 kind: PersistentVolumeClaim @@ -23,5 +23,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 1000Gi + storage: {{ .Values.polygon_fullnode.bor.storage.size }} {{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/persistentvolumeclaims/shkeeper.yaml b/charts/shkeeper/templates/persistentvolumeclaims/shkeeper.yaml index 32e675d..a4e9d9f 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/shkeeper.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/shkeeper.yaml @@ -9,4 +9,4 @@ spec: - ReadWriteOnce resources: requests: - storage: 10Gi + storage: {{ .Values.shkeeper.storage.size }} \ No newline at end of file diff --git a/charts/shkeeper/templates/persistentvolumeclaims/tron-fullnode.yaml b/charts/shkeeper/templates/persistentvolumeclaims/tron-fullnode.yaml index aa0c442..27e2988 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/tron-fullnode.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/tron-fullnode.yaml @@ -10,5 +10,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 2000Gi + storage: {{ .Values.tron_fullnode.storage.size }} {{- end }} \ No newline at end of file diff --git a/charts/shkeeper/templates/persistentvolumeclaims/tron-shkeeper.yaml b/charts/shkeeper/templates/persistentvolumeclaims/tron-shkeeper.yaml index a4be29c..6049228 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/tron-shkeeper.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/tron-shkeeper.yaml @@ -10,7 +10,7 @@ spec: - ReadWriteOnce resources: requests: - storage: 1Gi + storage: {{ .Values.tron_shkeeper.storage.size.app_data }} --- apiVersion: v1 kind: PersistentVolumeClaim @@ -23,5 +23,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 1Gi + storage: {{ .Values.tron_shkeeper.storage.size.redis_data }} {{- end }} \ No newline at end of file diff --git a/charts/shkeeper/values.yaml b/charts/shkeeper/values.yaml index c2f291d..4ae2edc 100644 --- a/charts/shkeeper/values.yaml +++ b/charts/shkeeper/values.yaml @@ -10,6 +10,10 @@ dev: storageClassName: +mariadb: + storage: + size: 10Gi + # # Shkeeper # @@ -17,6 +21,8 @@ storageClassName: shkeeper: image: vsyshost/shkeeper:2.2.2 port: 5000 + storage: + size: 10Gi # # BTC and forks @@ -27,13 +33,20 @@ btc: mainnet: true bitcoind: image: vsyshost/bitcoind:27.0 + storage: + size: 15Gi + ltc: enabled: true mainnet: true + storage: + size: 15Gi doge: enabled: true mainnet: true + storage: + size: 15Gi # # Tron @@ -47,11 +60,17 @@ tron_fullnode: JAVA_TOOL_OPTIONS: "" nodeSelector: {} tolerations: [] + storage: + size: 2000Gi tron_shkeeper: image: vsyshost/tron-shkeeper:1.0.20 host: 'tron-shkeeper' port: 6000 + storage: + size: + app_data: 1Gi + redis_data: 1Gi trx: enabled: false @@ -70,6 +89,8 @@ eth_fullnode: mainnet: true nodeSelector: {} tolerations: [] + storage: + size: 1000Gi ethereum_shkeeper: image: vsyshost/ethereum-shkeeper:1.1.6 @@ -90,6 +111,8 @@ monero: enabled: false image: vsyshost/monero:v0.18.1.2 mainnet: true + storage: + size: 10Gi fullnode: enabled: false @@ -100,6 +123,8 @@ monero: password: "monerod" nodeSelector: {} tolerations: [] + storage: + size: 20Gi # # BNB @@ -111,6 +136,8 @@ bnb_fullnode: mainnet: true nodeSelector: {} tolerations: [] + storage: + size: 3100Gi bnb_shkeeper: image: vsyshost/bnb-shkeeper:1.1.4 @@ -149,6 +176,13 @@ polygon_fullnode: mainnet: true nodeSelector: {} tolerations: [] + heimdall: + storage: + size: 1000Gi + bor: + storage: + size: 1000Gi + polygon_shkeeper: image: vsyshost/polygon-shkeeper:1.0.3 @@ -170,6 +204,8 @@ avalanche_fullnode: mainnet: true nodeSelector: {} tolerations: [] + storage: + size: 1000Gi avalanche_shkeeper: image: vsyshost/avalanche-shkeeper:1.0.0 @@ -193,8 +229,12 @@ btc_lightning: image: vsyshost/lndinit:v0.1.22-beta-lnd-v0.18.3-beta rest_url: https://lightning-lnd-rest:8080 p2p_port: 9735 + storage: + size: 10Gi rtl: image: shahanafarooqui/rtl:v0.15.4 web_url: http://rtl:3000 - logout_redirect_link: http://shkeeper:5000/wallet/BTC-LIGHTNING \ No newline at end of file + logout_redirect_link: http://shkeeper:5000/wallet/BTC-LIGHTNING + storage: + size: 10Gi From 317d6674feeb9e2bc37e696d0b0d321b84883740 Mon Sep 17 00:00:00 2001 From: Mykyta Orlov Date: Sun, 6 Apr 2025 21:18:39 +0300 Subject: [PATCH 3/3] feat: Add keepStorageAfterDelete feature --- .../persistentvolumeclaims/avalanche-fullnode.yaml | 4 ++++ .../templates/persistentvolumeclaims/bitcoind.yaml | 4 ++++ .../templates/persistentvolumeclaims/bnb-fullnode.yaml | 4 ++++ .../templates/persistentvolumeclaims/dogecoind.yaml | 4 ++++ .../persistentvolumeclaims/ethereum-fullnode.yaml | 4 ++++ .../templates/persistentvolumeclaims/litecoind.yaml | 4 ++++ .../persistentvolumeclaims/polygon-fullnode.yaml | 8 ++++++++ .../templates/persistentvolumeclaims/tron-fullnode.yaml | 4 ++++ .../templates/persistentvolumeclaims/tron-shkeeper.yaml | 8 ++++++++ charts/shkeeper/values.yaml | 3 +++ 10 files changed, 47 insertions(+) diff --git a/charts/shkeeper/templates/persistentvolumeclaims/avalanche-fullnode.yaml b/charts/shkeeper/templates/persistentvolumeclaims/avalanche-fullnode.yaml index fdae318..78b8101 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/avalanche-fullnode.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/avalanche-fullnode.yaml @@ -1,6 +1,10 @@ {{- if .Values.avalanche_fullnode.enabled }} apiVersion: v1 kind: PersistentVolumeClaim +annotations: + {{- if .Values.extra.keepStorageAfterDelete }} + helm.sh/resource-policy: keep + {{- end }} metadata: name: avalanchego-volume namespace: {{ .Values.namespace }} diff --git a/charts/shkeeper/templates/persistentvolumeclaims/bitcoind.yaml b/charts/shkeeper/templates/persistentvolumeclaims/bitcoind.yaml index c8ef152..0b486a7 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/bitcoind.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/bitcoind.yaml @@ -1,6 +1,10 @@ {{- if .Values.btc.enabled }} apiVersion: v1 kind: PersistentVolumeClaim +annotations: + {{- if .Values.extra.keepStorageAfterDelete }} + helm.sh/resource-policy: keep + {{- end }} metadata: name: bitcoind-claim namespace: {{ .Values.namespace }} diff --git a/charts/shkeeper/templates/persistentvolumeclaims/bnb-fullnode.yaml b/charts/shkeeper/templates/persistentvolumeclaims/bnb-fullnode.yaml index 0c7e2e4..16b208c 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/bnb-fullnode.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/bnb-fullnode.yaml @@ -1,6 +1,10 @@ {{- if .Values.bnb_fullnode.enabled }} apiVersion: v1 kind: PersistentVolumeClaim +annotations: + {{- if .Values.extra.keepStorageAfterDelete }} + helm.sh/resource-policy: keep + {{- end }} metadata: name: bnb-datadir namespace: {{ .Values.namespace }} diff --git a/charts/shkeeper/templates/persistentvolumeclaims/dogecoind.yaml b/charts/shkeeper/templates/persistentvolumeclaims/dogecoind.yaml index 37a3e55..b6542b3 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/dogecoind.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/dogecoind.yaml @@ -1,6 +1,10 @@ {{- if .Values.doge.enabled }} apiVersion: v1 kind: PersistentVolumeClaim +annotations: + {{- if .Values.extra.keepStorageAfterDelete }} + helm.sh/resource-policy: keep + {{- end }} metadata: name: dogecoind-claim namespace: {{ .Values.namespace }} diff --git a/charts/shkeeper/templates/persistentvolumeclaims/ethereum-fullnode.yaml b/charts/shkeeper/templates/persistentvolumeclaims/ethereum-fullnode.yaml index 694a45b..1a89aa0 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/ethereum-fullnode.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/ethereum-fullnode.yaml @@ -1,6 +1,10 @@ {{- if .Values.eth_fullnode.enabled }} apiVersion: v1 kind: PersistentVolumeClaim +annotations: + {{- if .Values.extra.keepStorageAfterDelete }} + helm.sh/resource-policy: keep + {{- end }} metadata: name: ethereum-datadir namespace: {{ .Values.namespace }} diff --git a/charts/shkeeper/templates/persistentvolumeclaims/litecoind.yaml b/charts/shkeeper/templates/persistentvolumeclaims/litecoind.yaml index 97a2123..939189d 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/litecoind.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/litecoind.yaml @@ -1,6 +1,10 @@ {{- if .Values.ltc.enabled }} apiVersion: v1 kind: PersistentVolumeClaim +annotations: + {{- if .Values.extra.keepStorageAfterDelete }} + helm.sh/resource-policy: keep + {{- end }} metadata: name: litecoind-claim namespace: {{ .Values.namespace }} diff --git a/charts/shkeeper/templates/persistentvolumeclaims/polygon-fullnode.yaml b/charts/shkeeper/templates/persistentvolumeclaims/polygon-fullnode.yaml index 74b904d..25b6b04 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/polygon-fullnode.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/polygon-fullnode.yaml @@ -1,6 +1,10 @@ {{- if .Values.polygon_fullnode.enabled }} apiVersion: v1 kind: PersistentVolumeClaim +annotations: + {{- if .Values.extra.keepStorageAfterDelete }} + helm.sh/resource-policy: keep + {{- end }} metadata: name: heimdall-config-volume namespace: {{ .Values.namespace }} @@ -14,6 +18,10 @@ spec: --- apiVersion: v1 kind: PersistentVolumeClaim +annotations: + {{- if .Values.extra.keepStorageAfterDelete }} + helm.sh/resource-policy: keep + {{- end }} metadata: name: bor-config-volume namespace: {{ .Values.namespace }} diff --git a/charts/shkeeper/templates/persistentvolumeclaims/tron-fullnode.yaml b/charts/shkeeper/templates/persistentvolumeclaims/tron-fullnode.yaml index 27e2988..aba460b 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/tron-fullnode.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/tron-fullnode.yaml @@ -1,6 +1,10 @@ {{- if .Values.tron_fullnode.enabled }} apiVersion: v1 kind: PersistentVolumeClaim +annotations: + {{- if .Values.extra.keepStorageAfterDelete }} + helm.sh/resource-policy: keep + {{- end }} metadata: name: tron-output-directory namespace: {{ .Values.namespace }} diff --git a/charts/shkeeper/templates/persistentvolumeclaims/tron-shkeeper.yaml b/charts/shkeeper/templates/persistentvolumeclaims/tron-shkeeper.yaml index 6049228..6010069 100644 --- a/charts/shkeeper/templates/persistentvolumeclaims/tron-shkeeper.yaml +++ b/charts/shkeeper/templates/persistentvolumeclaims/tron-shkeeper.yaml @@ -1,6 +1,10 @@ {{- if or .Values.trx.enabled .Values.usdt.enabled .Values.usdc.enabled}} apiVersion: v1 kind: PersistentVolumeClaim +annotations: + {{- if .Values.extra.keepStorageAfterDelete }} + helm.sh/resource-policy: keep + {{- end }} metadata: name: tron-shkeeper-data namespace: {{ .Values.namespace }} @@ -14,6 +18,10 @@ spec: --- apiVersion: v1 kind: PersistentVolumeClaim +annotations: + {{- if .Values.extra.keepStorageAfterDelete }} + helm.sh/resource-policy: keep + {{- end }} metadata: name: tron-shkeeper-redis-data namespace: {{ .Values.namespace }} diff --git a/charts/shkeeper/values.yaml b/charts/shkeeper/values.yaml index e5cf16c..71a7b1b 100644 --- a/charts/shkeeper/values.yaml +++ b/charts/shkeeper/values.yaml @@ -10,6 +10,9 @@ dev: storageClassName: +extra: + keepStorageAfterDelete: true + mariadb: storage: size: 10Gi