From b5ebad80c8daab66cee4d07bbdf4194dff9d53c3 Mon Sep 17 00:00:00 2001 From: Matt Chaffe Date: Fri, 25 Oct 2024 10:19:37 +0100 Subject: [PATCH 1/3] feat: add volumes / fix issue with port --- README.md | 2 ++ charts/postiz/templates/postiz-deployment.yaml | 18 ++++++++++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d5fbb39..7a03919 100644 --- a/README.md +++ b/README.md @@ -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, diff --git a/charts/postiz/templates/postiz-deployment.yaml b/charts/postiz/templates/postiz-deployment.yaml index e90c6fa..2deac03 100644 --- a/charts/postiz/templates/postiz-deployment.yaml +++ b/charts/postiz/templates/postiz-deployment.yaml @@ -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 @@ -55,4 +62,11 @@ spec: {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }} - {{- end }} \ No newline at end of file + {{- end }} + volumes: + {{- if .Values.extraVolumes }} + {{- toYaml .Values.extraVolumes | nindent 8 }} + {{- else }} + - name: uploads-volume + emptyDir: {} + {{- end }} \ No newline at end of file From 466cff4aa16bd4ff484fe4c0e0fda8eddc7c7e2e Mon Sep 17 00:00:00 2001 From: Matt Chaffe Date: Fri, 25 Oct 2024 11:14:16 +0100 Subject: [PATCH 2/3] continue: bump version --- charts/postiz/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/postiz/Chart.yaml b/charts/postiz/Chart.yaml index 41ba4fa..25a901e 100644 --- a/charts/postiz/Chart.yaml +++ b/charts/postiz/Chart.yaml @@ -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 From fc3d9c09102d7c359bb1b45481940dd0df39bfbd Mon Sep 17 00:00:00 2001 From: Matt Chaffe Date: Tue, 5 Nov 2024 12:23:31 +0000 Subject: [PATCH 3/3] continue: add defaults --- charts/postiz/values.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/postiz/values.yaml b/charts/postiz/values.yaml index f15c4a7..0799cdf 100644 --- a/charts/postiz/values.yaml +++ b/charts/postiz/values.yaml @@ -44,6 +44,9 @@ ingress: resources: {} +extraVolumes: [] +extraVolumeMounts: [] + autoscaling: enabled: false minReplicas: 1