Skip to content

Commit f404729

Browse files
committed
add a few more pvc parameters
1 parent 4319059 commit f404729

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

charts/pixelfed/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,11 @@ A Helm chart for deploying Pixelfed on Kubernetes
7878
| mariadb.enabled | bool | `false` | enable mariadb subchart - currently experimental for this chart read more about the values: https://github.com/bitnami/charts/tree/main/bitnami/mariadb |
7979
| nameOverride | string | `""` | This is to override the chart name. |
8080
| nodeSelector | object | `{}` | put the pixelfed pod on a specific node/nodegroup |
81+
| persistence.accessModes | list | `["ReadWriteOnce"]` | accessMode |
8182
| persistence.enabled | bool | `false` | enable persistence for the pixelfed pod |
8283
| persistence.existingClaim | string | `""` | using an existing PVC instead of creating one with this chart |
8384
| persistence.storage | string | `"2Gi"` | size of the persistent volume claim to create. Tgnored if persistence.existingClaim is set |
85+
| persistence.storageClassName | string | `""` | storage class name |
8486
| phpConfigs | object | `{}` | PHP Configuration files Will be injected in /usr/local/etc/php-fpm.d |
8587
| pixelfed.account_deletion | bool | `true` | Enable account deletion (may be a requirement in some jurisdictions) |
8688
| pixelfed.activity_pub.enabled | bool | `false` | enable ActivityPub |

charts/pixelfed/templates/deployment.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,12 @@ spec:
282282
{{- end }}
283283
{{- if .Values.persistence.enabled }}
284284
- name: storage
285-
persistentVolumeclaim:
285+
persistentVolumeClaim:
286+
{{- if .Values.persistence.existingClaim }}
286287
claimName: {{ .Values.persistence.existingClaim }}
288+
{{- else }}
289+
claimName: {{ include "pixelfed.fullname" . }}
290+
{{- end }}
287291
{{- end }}
288292
{{- if .Values.phpConfigs }}
289293
- name: phpconfig

charts/pixelfed/templates/pvc.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ apiVersion: v1
55
metadata:
66
name: {{ include "pixelfed.fullname" . }}
77
spec:
8+
storageClassName: {{ .Values.persistence.storageClassName }}
89
accessModes:
9-
- ReadWriteOnce
10+
{{- toYaml .Values.persistence.accessModes | indent 4 }}
1011
resources:
1112
requests:
1213
storage: {{ .Values.persistence.storage }}

charts/pixelfed/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,13 @@ phpConfigs: {}
309309
persistence:
310310
# -- enable persistence for the pixelfed pod
311311
enabled: false
312+
# -- storage class name
313+
storageClassName: ""
312314
# -- size of the persistent volume claim to create. Tgnored if persistence.existingClaim is set
313315
storage: 2Gi
316+
# -- accessMode
317+
accessModes:
318+
- ReadWriteOnce
314319
# -- using an existing PVC instead of creating one with this chart
315320
existingClaim: ""
316321

0 commit comments

Comments
 (0)