Merge pull request #5 from Mattchewone/feat/volumes

feat: add volumes / fix issue with port
This commit is contained in:
James Read
2024-11-05 16:21:05 +00:00
committed by GitHub
4 changed files with 22 additions and 3 deletions
+2
View File
@@ -57,6 +57,8 @@ The following table lists the configurable parameters of the Postiz chart and th
| `ingress.tls` | Ingress TLS configuration | `[]` |
| `ingress.path` | Path within the host | `/` |
| `ingress.pathType` | Ingress path type | `ImplementationSpecific` |
| `extraVolumes` | Additional volumes to mount | `[{"name": "uploads-volume", "emptyDir": {}}]` |
| `extraVolumeMounts` | Additional volume mounts to use | `[{"name": "uploads-volume", "mountPath": "/uploads"}]` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v2
name: postiz-app
description: A Social Media Scheduling App
type: application
version: 1.0.3
version: 1.0.4
appVersion: "1.3.0"
maintainers:
- name: jonathan-irvin
+15 -1
View File
@@ -35,8 +35,15 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: 3000
containerPort: 5000
protocol: TCP
volumeMounts:
{{- if .Values.extraVolumeMounts }}
{{- toYaml .Values.extraVolumeMounts | nindent 12 }}
{{- else }}
- name: uploads-volume
mountPath: /uploads
{{- end }}
envFrom:
- configMapRef:
name: {{ include "postiz.fullname" . }}-config
@@ -56,3 +63,10 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
{{- if .Values.extraVolumes }}
{{- toYaml .Values.extraVolumes | nindent 8 }}
{{- else }}
- name: uploads-volume
emptyDir: {}
{{- end }}
+3
View File
@@ -44,6 +44,9 @@ ingress:
resources: {}
extraVolumes: []
extraVolumeMounts: []
autoscaling:
enabled: false
minReplicas: 1