add optional PVC
This commit is contained in:
@@ -11,11 +11,13 @@ Uses @mattlqx's [docker image](https://ghcr.io/mattlqx/docker-pixelfed) which is
|
|||||||
|
|
||||||
- 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)
|
- 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)
|
||||||
- but you can also bring your own valkey, redis, or postgresql database
|
- but you can also bring your own valkey, redis, or postgresql database
|
||||||
|
- we're also looking for anyone who wants to test the mariadb subchart
|
||||||
- helm parameter (values.yaml) docs autogenerated via [`helm-docs`](https://github.com/norwoodj/helm-docs) in [`README.md`](./charts/pixelfed/README.md)
|
- helm parameter (values.yaml) docs autogenerated via [`helm-docs`](https://github.com/norwoodj/helm-docs) in [`README.md`](./charts/pixelfed/README.md)
|
||||||
- use existing Secrets for valkey, postgresql, and mail (smtp)
|
- use existing Secrets for valkey, postgresql, and mail (smtp)
|
||||||
- RenovateBot keeps the subcharts and docker image up to date
|
- RenovateBot keeps the subcharts and docker image up to date
|
||||||
- configurable liveness and readiness probes (or none at all)
|
- configurable liveness and readiness probes (or none at all)
|
||||||
- configure tolerations, affinity, nodeselectors
|
- configure tolerations, affinity, nodeselectors
|
||||||
|
- configure persistence with a PVC we create, or bring your own
|
||||||
- use extra volumes, volumemounts, containers, initContainers
|
- use extra volumes, volumemounts, containers, initContainers
|
||||||
|
|
||||||
## TLDR
|
## TLDR
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# 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.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# 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.
|
# This is the version number of the application being deployed.
|
||||||
# renovate:image=ghcr.io/mattlqx/docker-pixelfed
|
# renovate:image=ghcr.io/mattlqx/docker-pixelfed
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# pixelfed
|
# pixelfed
|
||||||
|
|
||||||
  
|
  
|
||||||
|
|
||||||
A Helm chart for deploying Pixelfed on Kubernetes
|
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 |
|
| 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. |
|
| nameOverride | string | `""` | This is to override the chart name. |
|
||||||
| nodeSelector | object | `{}` | put the pixelfed pod on a specific node/nodegroup |
|
| 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 |
|
| 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.account_deletion | bool | `true` | Enable account deletion (may be a requirement in some jurisdictions) |
|
||||||
| pixelfed.activity_pub.enabled | bool | `false` | enable ActivityPub |
|
| pixelfed.activity_pub.enabled | bool | `false` | enable ActivityPub |
|
||||||
|
|||||||
@@ -259,7 +259,7 @@ spec:
|
|||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if or .Values.extraVolumeMounts .Values.phpConfigs }}
|
{{- if or .Values.extraVolumeMounts .Values.phpConfigs .Values.persistence.enabled }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{- with .Values.extraVolumeMounts }}
|
{{- with .Values.extraVolumeMounts }}
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
@@ -269,13 +269,22 @@ spec:
|
|||||||
mountPath: {{ print "/usr/local/etc/php-fpm.d/%s" $key | quote }}
|
mountPath: {{ print "/usr/local/etc/php-fpm.d/%s" $key | quote }}
|
||||||
subPath: {{ $key }}
|
subPath: {{ $key }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.persistence.enabled }}
|
||||||
|
- name: storage
|
||||||
|
mountPath: /var/www/storage
|
||||||
|
{{- end }}
|
||||||
{{- end }}{{/* end volumeMounts */}}
|
{{- end }}{{/* end volumeMounts */}}
|
||||||
|
|
||||||
{{- if or .Values.phpConfigs .Values.extraVolumes }}
|
{{- if or .Values.phpConfigs .Values.extraVolumes .Values.persistence.enabled }}
|
||||||
volumes:
|
volumes:
|
||||||
{{- with .Values.extraVolumes }}
|
{{- with .Values.extraVolumes }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.persistence.enabled }}
|
||||||
|
- name: storage
|
||||||
|
persistentVolumeclaim:
|
||||||
|
claimName: {{ .Values.persistence.existingClaim }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.phpConfigs }}
|
{{- if .Values.phpConfigs }}
|
||||||
- name: phpconfig
|
- name: phpconfig
|
||||||
configMap:
|
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.min_spare_servers = 100
|
||||||
# pm.max_spare_servers = 280
|
# 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:
|
pixelfed:
|
||||||
db:
|
db:
|
||||||
# -- options: sqlite mysql pgsql sqlsrv
|
# -- options: sqlite mysql pgsql sqlsrv
|
||||||
|
|||||||
Reference in New Issue
Block a user