Skip to content

Commit

Permalink
renterd 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
artur9010 committed Feb 15, 2024
1 parent cf684d7 commit ad31af2
Show file tree
Hide file tree
Showing 9 changed files with 58 additions and 40 deletions.
34 changes: 29 additions & 5 deletions index.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,33 @@
apiVersion: v1
entries:
renterd:
- apiVersion: v2
appVersion: 1.0.5
created: "2024-02-15T16:57:57.190118449Z"
dependencies:
- condition: mysql.enabled
name: mysql
repository: https://charts.bitnami.com/bitnami
version: 9.19.1
description: Sia renterd helm chart
digest: 31d375dcff1c7c22e2b7bca21e06eeac0185d1fa03278a86fd69f7265d5ef1a3
icon: https://i.imgur.com/pWg0PRK.png
keywords:
- storage
- distributed
- blockchain
- sia
- renter
- s3
- webui
name: renterd
type: application
urls:
- https://charts.motyka.pro/renterd-1.0.4.tgz
version: 1.0.4
- apiVersion: v2
appVersion: 1.0.0
created: "2024-02-06T14:29:19.769138379Z"
created: "2024-02-15T16:57:57.186249509Z"
dependencies:
- condition: mysql.enabled
name: mysql
Expand All @@ -27,7 +51,7 @@ entries:
version: 1.0.3
- apiVersion: v2
appVersion: 1.0.0
created: "2024-02-06T14:29:19.764492708Z"
created: "2024-02-15T16:57:57.169480553Z"
dependencies:
- condition: mysql.enabled
name: mysql
Expand All @@ -51,7 +75,7 @@ entries:
version: 1.0.2
- apiVersion: v2
appVersion: 1.0.0
created: "2024-02-06T14:29:19.75359192Z"
created: "2024-02-15T16:57:57.142236768Z"
dependencies:
- condition: mysql.enabled
name: mysql
Expand All @@ -75,7 +99,7 @@ entries:
version: 1.0.1
- apiVersion: v2
appVersion: 1.0.0
created: "2024-02-06T14:29:19.710655739Z"
created: "2024-02-15T16:57:57.128435198Z"
dependencies:
- condition: mysql.enabled
name: mysql
Expand All @@ -89,4 +113,4 @@ entries:
urls:
- https://charts.motyka.pro/renterd-1.0.0.tgz
version: 1.0.0
generated: "2024-02-06T14:29:19.697287946Z"
generated: "2024-02-15T16:57:57.111908868Z"
Binary file added renterd-1.0.4.tgz
Binary file not shown.
4 changes: 2 additions & 2 deletions renterd/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: renterd
description: Sia renterd helm chart
type: application
version: 1.0.3
appVersion: "1.0.0"
version: 1.0.4
appVersion: "1.0.5"
icon: https://i.imgur.com/pWg0PRK.png
keywords:
- storage
Expand Down
22 changes: 21 additions & 1 deletion renterd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Helm chart for [Sia renterd software](https://sia.tech/software/renterd).

```
helm repo add artur9010 https://charts.motyka.pro
helm install renterd artur9010/renterd --version 1.0.3
helm install renterd artur9010/renterd --version 1.0.4
```

## Requirements
Expand Down Expand Up @@ -39,10 +39,30 @@ innodb_buffer_pool_size=4G
```
## Changes
### 1.0.4
- Changed default image to `renterd:1.0.5-zen`
- Removed option to specify wallet seed and passwords in values.
- Added an option to specify name of secret containing
### 1.0.3
- Removed renterd.s3.keys from values as keypairs can now be managed inside webUI.
- mysql: changed default authentication plugin from `mysql_native_password` to `caching_sha2_password` due to massive spam in container logs, see https://github.com/bitnami/charts/issues/18606
## Creating secret
Create an .txt file named secret.txt and containing:
```
RENTERD_SEED=24 words
RENTERD_API_PASSWORD=secure_api_password
RENTERD_BUS_API_PASSWORD=secure_api_password
RENTERD_WORKER_API_PASSWORD=secure_api_password
```
Seed: You can generate seed here: https://iancoleman.io/bip39/, make sure to select 24 words.
Password: API password, use the same value for all 3 of them.
Now run `kubectl create secret generic <secret name from values> -n <your namespace> --from-env-file=secret.txt`
## CPU and memory requirements
Tested on Ryzen zen1 platform (Ryzen 5 2200G, 2400G), while uploading files to s3 api via rclone, max 4 uploads at once. As database gets bigger it will probably require more memory, renterd holds uploaded data in memory.
```
Expand Down
10 changes: 0 additions & 10 deletions renterd/templates/secrets/renterd-env.yaml

This file was deleted.

3 changes: 1 addition & 2 deletions renterd/templates/statefulset-renterd-autopilot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ spec:
app.kubernetes.io/component: autopilot
annotations:
checksum/configmap-renterd: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
checksum/secret-renterd-env: {{ include (print $.Template.BasePath "/secrets/renterd-env.yaml") . | sha256sum }}
spec:
automountServiceAccountToken: {{ .Values.renterd.autopilot.automountServiceAccountToken }}
initContainers:
Expand Down Expand Up @@ -64,7 +63,7 @@ spec:
subPath: "entrypoint.sh"
envFrom:
- secretRef:
name: renterd-env
name: {{ .Values.renterd.secretName | quote }}
env:
- name: RENTERD_AUTOPILOT_ENABLED
value: "true"
Expand Down
13 changes: 1 addition & 12 deletions renterd/templates/statefulset-renterd-bus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,9 @@ spec:
app.kubernetes.io/component: bus
annotations:
checksum/configmap-renterd: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
checksum/secret-renterd-env: {{ include (print $.Template.BasePath "/secrets/renterd-env.yaml") . | sha256sum }}
checksum/secret-renterd-bus-env: {{ include (print $.Template.BasePath "/secrets/renterd-bus-env.yaml") . | sha256sum }}
spec:
automountServiceAccountToken: {{ .Values.renterd.bus.automountServiceAccountToken }}
# initContainers:
# - name: wait-for
# image: ghcr.io/patrickdappollonio/wait-for:v1.0.0
# args:
# - --verbose
# # Wait for mysql before starting
# - --host="$(RENTERD_DB_URI)"
# envFrom:
# - secretRef:
# name: renterd-env
containers:
- name: renterd
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down Expand Up @@ -65,7 +54,7 @@ spec:
subPath: "entrypoint.sh"
envFrom:
- secretRef:
name: renterd-env
name: {{ .Values.renterd.secretName | quote }}
- secretRef:
name: renterd-bus-env
env:
Expand Down
3 changes: 1 addition & 2 deletions renterd/templates/statefulset-renterd-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ spec:
app.kubernetes.io/component: worker
annotations:
checksum/configmap-renterd: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
checksum/secret-renterd-env: {{ include (print $.Template.BasePath "/secrets/renterd-env.yaml") . | sha256sum }}
spec:
automountServiceAccountToken: {{ .Values.renterd.workers.automountServiceAccountToken }}
initContainers:
Expand Down Expand Up @@ -71,7 +70,7 @@ spec:
value: {{ include "renterd.busAddr" . | quote }}
envFrom:
- secretRef:
name: renterd-env
name: {{ .Values.renterd.secretName | quote }}
resources:
{{- toYaml .Values.renterd.workers.resources | nindent 12 }}
{{- if .Values.renterd.workers.nodeSelector }}
Expand Down
9 changes: 3 additions & 6 deletions renterd/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
image:
repository: ghcr.io/siafoundation/renterd
pullPolicy: IfNotPresent
tag: "1.0.3-zen"
tag: "1.0.5-zen"

service:
bus:
Expand All @@ -15,11 +15,8 @@ service:
port: 8080

renterd:
# You can generate seed here: https://iancoleman.io/bip39/, make sure to select 24 words.
# ...or use an example one
seed: "clutch polar sail margin what liquid zero current safe horse alert same fortune disorder cousin angle bid give leg muscle slam rifle camp power"
api:
password: "renterdApiPassowrd2"
# You need to create secret manually, check README.md for more info.
secretName: "renterd"
s3:
enabled: true
bus:
Expand Down

0 comments on commit ad31af2

Please sign in to comment.