Skip to content

Commit 5f65e92

Browse files
authored
Merge pull request #13 from small-hack/disable-persistence-by-default-for-valkey
disable valkey persistence by default, but add some more docs on where you can find the parameters for each chart to enable it if you want
2 parents 206cd20 + 4389d8b commit 5f65e92

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ A helm chart to setup [Pixelfed](https://pixelfed.org/). Uses matt's docker [ima
55

66
## Features
77

8-
- includes subcharts for valkey (redis) and postgresql (database)
8+
- includes bitnami subcharts for [valkey](https://github.com/bitnami/charts/blob/main/bitnami/valkey/README.md#parameters) (redis) and [postgresql](https://github.com/bitnami/charts/blob/main/bitnami/postgresql/README.md#parameters) (database)
99
- helm parameter docs autogenerated via helm-docs
1010
- use existing Secrets for valkey, postgresql, and smtp
1111
- RenovateBot keeps the subcharts and docker image up to date

charts/pixelfed/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.3.4
18+
version: 0.4.0
1919

2020
# This is the version number of the application being deployed.
2121
# renovate:image=ghcr.io/mattlqx/docker-pixelfed

charts/pixelfed/README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pixelfed
22

3-
![Version: 0.3.4](https://img.shields.io/badge/Version-0.3.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.12.3-nginx](https://img.shields.io/badge/AppVersion-v0.12.3--nginx-informational?style=flat-square)
3+
![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.12.3-nginx](https://img.shields.io/badge/AppVersion-v0.12.3--nginx-informational?style=flat-square)
44

55
A Helm chart for deploying Pixelfed on Kubernetes
66

@@ -154,8 +154,9 @@ A Helm chart for deploying Pixelfed on Kubernetes
154154
| podAnnotations | object | `{}` | This is for setting Kubernetes Annotations to a Pod. For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ |
155155
| podLabels | object | `{}` | This is for setting Kubernetes Labels to a Pod. For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ |
156156
| podSecurityContext | object | `{}` | |
157-
| postgresql.enabled | bool | `true` | enable the bundled postgresql sub chart from Bitnami. Must set to true if externalDatabase.enabled=false |
157+
| postgresql.enabled | bool | `true` | enable the bundled [postgresql sub chart from Bitnami](https://github.com/bitnami/charts/blob/main/bitnami/postgresql/README.md#parameters). Must set to true if externalDatabase.enabled=false |
158158
| postgresql.fullnameOverride | string | `"postgresql"` | |
159+
| postgresql.global.storageClass | string | `""` | |
159160
| readinessProbe.httpGet.path | string | `"/api/service/health-check"` | |
160161
| readinessProbe.httpGet.port | string | `"http"` | |
161162
| replicaCount | int | `1` | This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/ |
@@ -172,17 +173,17 @@ A Helm chart for deploying Pixelfed on Kubernetes
172173
| valkey.auth.enabled | bool | `true` | |
173174
| valkey.auth.existingSecret | string | `""` | |
174175
| valkey.auth.existingSecretPasswordKey | string | `"password"` | |
175-
| valkey.enabled | bool | `true` | enable the bundled valkey sub chart from Bitnami. Must set to true if externalValkey.enabled=false |
176+
| valkey.enabled | bool | `true` | enable the bundled [valkey sub chart from Bitnami](https://github.com/bitnami/charts/blob/main/bitnami/valkey/README.md#parameters). Must set to true if externalValkey.enabled=false |
176177
| valkey.fullnameOverride | string | `"valkey"` | |
177178
| valkey.global.storageClass | string | `""` | |
178179
| valkey.metrics.enabled | bool | `false` | we use a grafana exporter that logs into valkey directly, but you can enable this if you don't use that |
179180
| valkey.persistentVolumeClaimRetentionPolicy.enabled | bool | `true` | |
180181
| valkey.persistentVolumeClaimRetentionPolicy.whenDeleted | string | `"Retain"` | |
181182
| valkey.persistentVolumeClaimRetentionPolicy.whenScaled | string | `"Retain"` | |
182183
| valkey.primary.disableCommands | list | `["FLUSHALL"]` | Laravel requires the ability to call FLUSHDB, which is disabled by default |
183-
| valkey.primary.persistence.enabled | bool | `true` | |
184+
| valkey.primary.persistence.enabled | bool | `false` | enable to persistent primary data accross restarts |
184185
| valkey.primary.persistence.existingClaim | string | `""` | |
185-
| valkey.replica.persistence.enabled | bool | `true` | |
186+
| valkey.replica.persistence.enabled | bool | `false` | enable to persistent replica data accross restarts |
186187
| valkey.replica.persistence.existingClaim | string | `""` | |
187188
| valkey.resourcesPreset | string | `"small"` | definitions: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15 Options: nano, micro, small, medium, large, xlarge, 2xlarge default: nano |
188189
| valkey.tls.authClients | bool | `true` | |

charts/pixelfed/values.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ externalValkey:
175175

176176
# valkey is a fork of redis with a better license
177177
valkey:
178-
# -- enable the bundled valkey sub chart from Bitnami.
178+
# -- enable the bundled [valkey sub chart from Bitnami](https://github.com/bitnami/charts/blob/main/bitnami/valkey/README.md#parameters).
179179
# Must set to true if externalValkey.enabled=false
180180
enabled: true
181181
fullnameOverride: "valkey"
@@ -200,13 +200,15 @@ valkey:
200200
disableCommands:
201201
- FLUSHALL
202202
persistence:
203-
enabled: true
203+
# -- enable to persistent primary data accross restarts
204+
enabled: false
204205
existingClaim: ""
205206

206207
# valkey replica configuration
207208
replica:
208209
persistence:
209-
enabled: true
210+
# -- enable to persistent replica data accross restarts
211+
enabled: false
210212
existingClaim: ""
211213

212214
# persistnent volume retention policy for the StatefulSet
@@ -226,10 +228,12 @@ valkey:
226228

227229

228230
postgresql:
229-
# -- enable the bundled postgresql sub chart from Bitnami.
231+
# -- enable the bundled [postgresql sub chart from Bitnami](https://github.com/bitnami/charts/blob/main/bitnami/postgresql/README.md#parameters).
230232
# Must set to true if externalDatabase.enabled=false
231233
enabled: true
232234
fullnameOverride: "postgresql"
235+
global:
236+
storageClass: ""
233237

234238
pixelfed:
235239
# -- Automatically run [artisan migrate --force] if new migrations are detected.

0 commit comments

Comments
 (0)