fix(monero-node): Redo chart for updated container **Breaking** (#18552)

**Description**

Redid the app, removed bad persistence, added args and new maintained
container

⚒️ Fixes  #17532 

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning

**➕ App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._
This commit is contained in:
StevenMcElligott
2024-02-25 11:38:01 +01:00
committed by GitHub
parent 6e8846cfe7
commit 067bfe0552
5 changed files with 105 additions and 60 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ annotations:
truecharts.org/min_helm_version: "3.12" truecharts.org/min_helm_version: "3.12"
truecharts.org/train: stable truecharts.org/train: stable
apiVersion: v2 apiVersion: v2
appVersion: latest appVersion: 18.3.1
dependencies: dependencies:
- name: common - name: common
version: 18.0.2 version: 18.0.2
@@ -36,4 +36,4 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/monero-node - https://github.com/truecharts/charts/tree/master/charts/stable/monero-node
- https://hub.docker.com/r/kannix/monero-full-node - https://hub.docker.com/r/kannix/monero-full-node
type: application type: application
version: 5.1.1 version: 6.0.0
+53 -31
View File
@@ -9,17 +9,53 @@ questions:
# Include{replicas1} # Include{replicas1}
# Include{podSpec} # Include{podSpec}
# Include{containerMain} # Include{containerMain}
- variable: env # Include{containerBasic}
label: Image Environment # Include{containerAdvanced}
schema: - variable: monero
additional_attrs: true group: App Configuration
type: dict label: Monero Node Configuration
attrs: schema:
- variable: name additional_attrs: true
label: "name" type: dict
schema: attrs:
type: string - variable: rpcbindip
default: "monerod" label: Restricted Bind Ip
description: Restrict bind IP, default is 0.0.0.0 or none
schema:
type: string
default: "0.0.0.0"
- variable: rpcbindport
label: Restricted Bind Port
description: Restrict bind port, default is 18089
schema:
type: string
default: "18089"
- variable: publicnode
label: Enable Public Node
description: Make node pbulic
schema:
type: boolean
default: true
- variable: noigd
label: Enable No IGD
description: Enable no-igd arg
schema:
type: boolean
default: true
- variable: enablednsblocklist
label: Enable DNS Blocklist
description: Use built-in DNS Blocklist
schema:
type: boolean
default: true
- variable: pruneblockchain
label: Prune Blockchain
description: Enable prune-blockchain arg
schema:
type: boolean
default: true
# Include{containerConfig}
# Include{podOptions}
# Include{serviceRoot} # Include{serviceRoot}
- variable: main - variable: main
label: "Main Service" label: "Main Service"
@@ -43,16 +79,16 @@ questions:
type: int type: int
default: 18080 default: 18080
required: true required: true
- variable: port2 - variable: rpc
label: 'port2 service' label: 'RPC service'
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
# Include{serviceSelectorLoadBalancer} # Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras} # Include{serviceSelectorExtras}
- variable: port2 - variable: rpc
label: "port2 Service Port Configuration" label: "RPC Service Port Configuration"
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
@@ -62,28 +98,14 @@ questions:
description: "This port exposes the container port on the service" description: "This port exposes the container port on the service"
schema: schema:
type: int type: int
default: 18081 default: 18089
required: true required: true
# Include{serviceExpertRoot} # Include{serviceExpertRoot}
# Include{serviceExpert} # Include{serviceExpert}
# Include{serviceList} # Include{serviceList}
# Include{persistenceRoot} # Include{persistenceRoot}
- variable: containerdir1
label: "containerdir1 Storage"
schema:
additional_attrs: true
type: dict
attrs:
# Include{persistenceBasic}
- variable: containerdir2
label: "containerdir2 Storage"
schema:
additional_attrs: true
type: dict
attrs:
# Include{persistenceBasic}
- variable: blockchainstorage - variable: blockchainstorage
label: "blockchainstorage Storage" label: "Main Container / Blockchain Storage"
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
@@ -0,0 +1,17 @@
{{- define "monero.args" -}}
args:
- --rpc-restricted-bind-ip={{ .Values.monero.rpcbindip }}
- --rpc-restricted-bind-port={{ .Values.service.rpc.ports.rpc.port }}
{{- if .Values.monero.publicnode }}
- --public-node
{{- end -}}
{{- if .Values.monero.noigd }}
- --no-igd
{{- end -}}
{{- if .Values.monero.enablednsblocklist }}
- --enable-dns-blocklist
{{- end -}}
{{- if .Values.monero.pruneblockchain }}
- --prune-blockchain
{{- end -}}
{{- end -}}
@@ -1,2 +1,9 @@
{{/* Make sure all variables are set properly */}}
{{- include "tc.v1.common.loader.init" . }}
{{- $newArgs := (include "monero.args" . | fromYaml) }}
{{- $args := concat ((get .Values.workload.main.podSpec.containers.main "args") | default list) $newArgs.args }}
{{- $_ := set .Values.workload.main.podSpec.containers.main "args" $args -}}
{{/* Render the templates */}} {{/* Render the templates */}}
{{ include "tc.v1.common.loader.all" . }} {{ include "tc.v1.common.loader.apply" . }}
+25 -26
View File
@@ -1,25 +1,22 @@
image: image:
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
repository: kannix/monero-full-node repository: ghcr.io/sethforprivacy/simple-monerod
tag: latest@sha256:24071a723ae6a748ddbe892dfb8f6029f51aec381b760284ea71ccc16030a18e tag: v0.18.3.1@sha256:26492ad584d1022c62efe3529574264fc0a30107e797d23686c42c4c62eea093
persistence:
blockchainstorage: monero:
enabled: true rpcbindip: "0.0.0.0"
mountPath: /home/monero/.bitmonero rpcbindport: "18089"
containerdir1: publicnode: true
enabled: true noigd: true
mountPath: /usr/local enablednsblocklist: true
containerdir2: pruneblockchain: true
enabled: true
mountPath: /src
portal:
open:
enabled: true
securityContext: securityContext:
container: container:
readOnlyRootFilesystem: false readOnlyRootFilesystem: false
runAsGroup: 0 runAsGroup: 0
runAsUser: 0 runAsUser: 0
service: service:
main: main:
ports: ports:
@@ -27,18 +24,20 @@ service:
port: 18080 port: 18080
protocol: tcp protocol: tcp
targetPort: 18080 targetPort: 18080
port2: rpc:
enabled: true enabled: true
ports: ports:
port2: rpc:
enabled: true enabled: true
port: 18081 port: 18089
protocol: tcp protocol: tcp
targetPort: 18081 targetPort: 18089
workload:
main: persistence:
podSpec: blockchainstorage:
containers: enabled: true
main: mountPath: /home/monero/.bitmonero
env:
name: monerod portal:
open:
enabled: true