feat: add volumes / fix issue with port

This commit is contained in:
Matt Chaffe
2024-10-25 10:19:37 +01:00
parent 465e817e22
commit b5ebad80c8
2 changed files with 18 additions and 2 deletions
+16 -2
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
@@ -55,4 +62,11 @@ spec:
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
volumes:
{{- if .Values.extraVolumes }}
{{- toYaml .Values.extraVolumes | nindent 8 }}
{{- else }}
- name: uploads-volume
emptyDir: {}
{{- end }}