Skip to content
Snippets Groups Projects
Unverified Commit 2b4a0e90 authored by groundhog2k's avatar groundhog2k Committed by GitHub
Browse files

Added ingress max post body size (#55)

parent f9d35341
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ maintainers: ...@@ -8,7 +8,7 @@ maintainers:
- name: groundhog2k - name: groundhog2k
# This is the chart version # This is the chart version
version: 0.1.3 version: 0.1.4
# This is the version number of the application being deployed. # This is the version number of the application being deployed.
appVersion: "3.36.0" appVersion: "3.36.0"
......
...@@ -93,6 +93,7 @@ $ helm uninstall my-release ...@@ -93,6 +93,7 @@ $ helm uninstall my-release
| ingress.hosts[0].host | string | `""` | Hostname for the ingress endpoint | | ingress.hosts[0].host | string | `""` | Hostname for the ingress endpoint |
| ingress.hosts[0].host.paths[0] | string | `"/"` | Path of the Ghost UI | | ingress.hosts[0].host.paths[0] | string | `"/"` | Path of the Ghost UI |
| ingress.tls | list | `[]` | Ingress TLS parameters | | ingress.tls | list | `[]` | Ingress TLS parameters |
| ingress.maxBodySize | string | `"2m"` | Maximum body size for post requests |
## Storage parameters ## Storage parameters
......
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled -}}
{{- $fullName := include "ghost.fullname" . -}} {{- $fullName := include "ghost.fullname" . -}}
{{- $svcPort := .Values.service.port -}} {{- $svcPort := .Values.service.port -}}
{{- $maxSize := .Values.ingress.maxBodySize -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} {{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1 apiVersion: networking.k8s.io/v1beta1
{{- else -}} {{- else -}}
...@@ -11,8 +12,9 @@ metadata: ...@@ -11,8 +12,9 @@ metadata:
name: {{ $fullName }} name: {{ $fullName }}
labels: labels:
{{- include "ghost.labels" . | nindent 4 }} {{- include "ghost.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations: annotations:
nginx.ingress.kubernetes.io/proxy-body-size: {{ $maxSize }}
{{- with .Values.ingress.annotations }}
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
spec: spec:
......
...@@ -50,6 +50,9 @@ ingress: ...@@ -50,6 +50,9 @@ ingress:
## Enable ingress endpoint ## Enable ingress endpoint
enabled: false enabled: false
## Maximal body size (default: 2m - increase if uploads failing)
maxBodySize: 2m
## Additional ingress annotations ## Additional ingress annotations
annotations: {} annotations: {}
# kubernetes.io/ingress.class: nginx # kubernetes.io/ingress.class: nginx
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment