feat(helm): expose the upload size limit as global.maxFileSizeMB
The chart never rendered MAX_FILE_SIZE_MB, so a Helm install was pinned to the image default of 50 MB with no supported way to raise it for the frontend (nginx client_max_body_size) and docreader (gRPC message limit) together. Add global.maxFileSizeMB, default 50 as in docker-compose, and render it into the app, frontend and docreader containers.main
parent
ffe1d7302b
commit
86d245d892
|
|
@ -148,6 +148,7 @@ helm install weknora ./helm \
|
|||
|-----------|-------------|---------|
|
||||
| `global.storageClass` | Storage class for PVCs | `""` |
|
||||
| `global.imagePullSecrets` | Image pull secrets | `[]` |
|
||||
| `global.maxFileSizeMB` | Maximum upload size in MB (frontend, app, docreader) | `50` |
|
||||
| `global.podSecurityContext` | Pod security context | See values.yaml |
|
||||
| `global.containerSecurityContext` | Container security context | See values.yaml |
|
||||
|
||||
|
|
|
|||
|
|
@ -51,6 +51,8 @@ spec:
|
|||
value: {{ .Values.app.env.GIN_MODE | quote }}
|
||||
- name: TZ
|
||||
value: {{ .Values.app.env.TZ | quote }}
|
||||
- name: MAX_FILE_SIZE_MB
|
||||
value: {{ .Values.global.maxFileSizeMB | quote }}
|
||||
# Database configuration
|
||||
- name: DB_DRIVER
|
||||
value: "postgres"
|
||||
|
|
|
|||
|
|
@ -48,6 +48,8 @@ spec:
|
|||
env:
|
||||
- name: STORAGE_TYPE
|
||||
value: {{ .Values.docreader.env.STORAGE_TYPE | quote }}
|
||||
- name: MAX_FILE_SIZE_MB
|
||||
value: {{ .Values.global.maxFileSizeMB | quote }}
|
||||
resources:
|
||||
{{- toYaml .Values.docreader.resources | nindent 12 }}
|
||||
# gRPC health check using grpc_health_probe
|
||||
|
|
|
|||
|
|
@ -46,6 +46,8 @@ spec:
|
|||
value: {{ .Values.frontend.appHost | default "app" | quote }}
|
||||
- name: APP_PORT
|
||||
value: {{ .Values.frontend.appPort | default .Values.app.service.port | quote }}
|
||||
- name: MAX_FILE_SIZE_MB
|
||||
value: {{ .Values.global.maxFileSizeMB | quote }}
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
|
|
|
|||
|
|
@ -20,6 +20,11 @@ global:
|
|||
imagePullSecrets: []
|
||||
# - name: regcred
|
||||
|
||||
# -- Maximum upload size in MB, applied to the frontend (nginx
|
||||
# client_max_body_size), the app (upload limit) and docreader (gRPC message
|
||||
# limit). Same knob as MAX_FILE_SIZE_MB in docker-compose.yml.
|
||||
maxFileSizeMB: 50
|
||||
|
||||
# -- Default security context for all pods
|
||||
# Note: Official images (nginx, postgres, redis) run as root by default
|
||||
# Enable runAsNonRoot only if using non-root compatible images
|
||||
|
|
|
|||
Loading…
Reference in New Issue