add a few more pvc parameters
This commit is contained in:
@@ -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 |
|
| 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.accessModes | list | `["ReadWriteOnce"]` | accessMode |
|
||||||
| persistence.enabled | bool | `false` | enable persistence for the pixelfed pod |
|
| 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.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.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 |
|
| 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 |
|
||||||
|
|||||||
@@ -282,8 +282,12 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.persistence.enabled }}
|
{{- if .Values.persistence.enabled }}
|
||||||
- name: storage
|
- name: storage
|
||||||
persistentVolumeclaim:
|
persistentVolumeClaim:
|
||||||
|
{{- if .Values.persistence.existingClaim }}
|
||||||
claimName: {{ .Values.persistence.existingClaim }}
|
claimName: {{ .Values.persistence.existingClaim }}
|
||||||
|
{{- else }}
|
||||||
|
claimName: {{ include "pixelfed.fullname" . }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.phpConfigs }}
|
{{- if .Values.phpConfigs }}
|
||||||
- name: phpconfig
|
- name: phpconfig
|
||||||
|
|||||||
@@ -5,8 +5,9 @@ apiVersion: v1
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ include "pixelfed.fullname" . }}
|
name: {{ include "pixelfed.fullname" . }}
|
||||||
spec:
|
spec:
|
||||||
|
storageClassName: {{ .Values.persistence.storageClassName }}
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
{{- toYaml .Values.persistence.accessModes | indent 4 }}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.persistence.storage }}
|
storage: {{ .Values.persistence.storage }}
|
||||||
|
|||||||
@@ -309,8 +309,13 @@ phpConfigs: {}
|
|||||||
persistence:
|
persistence:
|
||||||
# -- enable persistence for the pixelfed pod
|
# -- enable persistence for the pixelfed pod
|
||||||
enabled: false
|
enabled: false
|
||||||
|
# -- storage class name
|
||||||
|
storageClassName: ""
|
||||||
# -- size of the persistent volume claim to create. Tgnored if persistence.existingClaim is set
|
# -- size of the persistent volume claim to create. Tgnored if persistence.existingClaim is set
|
||||||
storage: 2Gi
|
storage: 2Gi
|
||||||
|
# -- accessMode
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
# -- using an existing PVC instead of creating one with this chart
|
# -- using an existing PVC instead of creating one with this chart
|
||||||
existingClaim: ""
|
existingClaim: ""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user