add a few more pvc parameters

This commit is contained in:
jessebot
2025-01-23 23:20:37 +01:00
parent 4319059a58
commit f404729a71
4 changed files with 14 additions and 2 deletions
+2
View File
@@ -78,9 +78,11 @@ A Helm chart for deploying Pixelfed on Kubernetes
| 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 |
| nameOverride | string | `""` | This is to override the chart name. |
| nodeSelector | object | `{}` | put the pixelfed pod on a specific node/nodegroup |
| persistence.accessModes | list | `["ReadWriteOnce"]` | accessMode |
| persistence.enabled | bool | `false` | enable persistence for the pixelfed pod |
| persistence.existingClaim | string | `""` | using an existing PVC instead of creating one with this chart |
| persistence.storage | string | `"2Gi"` | size of the persistent volume claim to create. Tgnored if persistence.existingClaim is set |
| persistence.storageClassName | string | `""` | storage class name |
| phpConfigs | object | `{}` | PHP Configuration files Will be injected in /usr/local/etc/php-fpm.d |
| pixelfed.account_deletion | bool | `true` | Enable account deletion (may be a requirement in some jurisdictions) |
| pixelfed.activity_pub.enabled | bool | `false` | enable ActivityPub |
+5 -1
View File
@@ -282,8 +282,12 @@ spec:
{{- end }}
{{- if .Values.persistence.enabled }}
- name: storage
persistentVolumeclaim:
persistentVolumeClaim:
{{- if .Values.persistence.existingClaim }}
claimName: {{ .Values.persistence.existingClaim }}
{{- else }}
claimName: {{ include "pixelfed.fullname" . }}
{{- end }}
{{- end }}
{{- if .Values.phpConfigs }}
- name: phpconfig
+2 -1
View File
@@ -5,8 +5,9 @@ apiVersion: v1
metadata:
name: {{ include "pixelfed.fullname" . }}
spec:
storageClassName: {{ .Values.persistence.storageClassName }}
accessModes:
- ReadWriteOnce
{{- toYaml .Values.persistence.accessModes | indent 4 }}
resources:
requests:
storage: {{ .Values.persistence.storage }}
+5
View File
@@ -309,8 +309,13 @@ phpConfigs: {}
persistence:
# -- enable persistence for the pixelfed pod
enabled: false
# -- storage class name
storageClassName: ""
# -- size of the persistent volume claim to create. Tgnored if persistence.existingClaim is set
storage: 2Gi
# -- accessMode
accessModes:
- ReadWriteOnce
# -- using an existing PVC instead of creating one with this chart
existingClaim: ""