feat: add volumes / fix issue with port
This commit is contained in:
@@ -57,6 +57,8 @@ The following table lists the configurable parameters of the Postiz chart and th
|
|||||||
| `ingress.tls` | Ingress TLS configuration | `[]` |
|
| `ingress.tls` | Ingress TLS configuration | `[]` |
|
||||||
| `ingress.path` | Path within the host | `/` |
|
| `ingress.path` | Path within the host | `/` |
|
||||||
| `ingress.pathType` | Ingress path type | `ImplementationSpecific` |
|
| `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,
|
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
|
||||||
|
|
||||||
|
|||||||
@@ -35,8 +35,15 @@ spec:
|
|||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 3000
|
containerPort: 5000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
{{- if .Values.extraVolumeMounts }}
|
||||||
|
{{- toYaml .Values.extraVolumeMounts | nindent 12 }}
|
||||||
|
{{- else }}
|
||||||
|
- name: uploads-volume
|
||||||
|
mountPath: /uploads
|
||||||
|
{{- end }}
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "postiz.fullname" . }}-config
|
name: {{ include "postiz.fullname" . }}-config
|
||||||
@@ -56,3 +63,10 @@ spec:
|
|||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
volumes:
|
||||||
|
{{- if .Values.extraVolumes }}
|
||||||
|
{{- toYaml .Values.extraVolumes | nindent 8 }}
|
||||||
|
{{- else }}
|
||||||
|
- name: uploads-volume
|
||||||
|
emptyDir: {}
|
||||||
|
{{- end }}
|
||||||
Reference in New Issue
Block a user