add optional PVC
This commit is contained in:
@@ -15,7 +15,7 @@ type: application
|
||||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||
version: 0.18.0
|
||||
version: 0.19.0
|
||||
|
||||
# This is the version number of the application being deployed.
|
||||
# renovate:image=ghcr.io/mattlqx/docker-pixelfed
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# pixelfed
|
||||
|
||||
  
|
||||
  
|
||||
|
||||
A Helm chart for deploying Pixelfed on Kubernetes
|
||||
|
||||
@@ -78,6 +78,9 @@ 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.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 |
|
||||
| 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 |
|
||||
|
||||
@@ -259,7 +259,7 @@ spec:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
|
||||
{{- if or .Values.extraVolumeMounts .Values.phpConfigs }}
|
||||
{{- if or .Values.extraVolumeMounts .Values.phpConfigs .Values.persistence.enabled }}
|
||||
volumeMounts:
|
||||
{{- with .Values.extraVolumeMounts }}
|
||||
{{- toYaml . | nindent 12 }}
|
||||
@@ -269,13 +269,22 @@ spec:
|
||||
mountPath: {{ print "/usr/local/etc/php-fpm.d/%s" $key | quote }}
|
||||
subPath: {{ $key }}
|
||||
{{- end }}
|
||||
{{- if .Values.persistence.enabled }}
|
||||
- name: storage
|
||||
mountPath: /var/www/storage
|
||||
{{- end }}
|
||||
{{- end }}{{/* end volumeMounts */}}
|
||||
|
||||
{{- if or .Values.phpConfigs .Values.extraVolumes }}
|
||||
{{- if or .Values.phpConfigs .Values.extraVolumes .Values.persistence.enabled }}
|
||||
volumes:
|
||||
{{- with .Values.extraVolumes }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.persistence.enabled }}
|
||||
- name: storage
|
||||
persistentVolumeclaim:
|
||||
claimName: {{ .Values.persistence.existingClaim }}
|
||||
{{- end }}
|
||||
{{- if .Values.phpConfigs }}
|
||||
- name: phpconfig
|
||||
configMap:
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim ) }}
|
||||
---
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: {{ include "pixelfed.fullname" . }}
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.persistence.storage }}
|
||||
{{- end }}
|
||||
@@ -306,6 +306,14 @@ phpConfigs: {}
|
||||
# pm.min_spare_servers = 100
|
||||
# pm.max_spare_servers = 280
|
||||
|
||||
persistence:
|
||||
# -- enable persistence for the pixelfed pod
|
||||
enabled: false
|
||||
# -- size of the persistent volume claim to create. Tgnored if persistence.existingClaim is set
|
||||
storage: 2Gi
|
||||
# -- using an existing PVC instead of creating one with this chart
|
||||
existingClaim: ""
|
||||
|
||||
pixelfed:
|
||||
db:
|
||||
# -- options: sqlite mysql pgsql sqlsrv
|
||||
|
||||
Reference in New Issue
Block a user