diff --git a/charts/ghost/Chart.yaml b/charts/ghost/Chart.yaml index e0ad63ad64178a464295744214fb0e9a7a1a4b73..b3b839c6f9656eebbb7f43b13ca372542a9b7dfe 100644 --- a/charts/ghost/Chart.yaml +++ b/charts/ghost/Chart.yaml @@ -8,7 +8,7 @@ maintainers: - name: groundhog2k # This is the chart version -version: 0.1.3 +version: 0.1.4 # This is the version number of the application being deployed. appVersion: "3.36.0" diff --git a/charts/ghost/README.md b/charts/ghost/README.md index b8e4a1eb2d6c6e63bafa35894ba894489c68fb50..e37a1498439908a2bd863f71f3a879eb941ef726 100644 --- a/charts/ghost/README.md +++ b/charts/ghost/README.md @@ -93,6 +93,7 @@ $ helm uninstall my-release | ingress.hosts[0].host | string | `""` | Hostname for the ingress endpoint | | ingress.hosts[0].host.paths[0] | string | `"/"` | Path of the Ghost UI | | ingress.tls | list | `[]` | Ingress TLS parameters | +| ingress.maxBodySize | string | `"2m"` | Maximum body size for post requests | ## Storage parameters diff --git a/charts/ghost/templates/ingress.yaml b/charts/ghost/templates/ingress.yaml index c16c6460b3b7641d0dc597a30e277918ee552ed0..3cb02548568745524a65bd25b18043dd8892a45c 100644 --- a/charts/ghost/templates/ingress.yaml +++ b/charts/ghost/templates/ingress.yaml @@ -1,6 +1,7 @@ {{- if .Values.ingress.enabled -}} {{- $fullName := include "ghost.fullname" . -}} {{- $svcPort := .Values.service.port -}} +{{- $maxSize := .Values.ingress.maxBodySize -}} {{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} apiVersion: networking.k8s.io/v1beta1 {{- else -}} @@ -11,8 +12,9 @@ metadata: name: {{ $fullName }} labels: {{- include "ghost.labels" . | nindent 4 }} - {{- with .Values.ingress.annotations }} annotations: + nginx.ingress.kubernetes.io/proxy-body-size: {{ $maxSize }} + {{- with .Values.ingress.annotations }} {{- toYaml . | nindent 4 }} {{- end }} spec: diff --git a/charts/ghost/values.yaml b/charts/ghost/values.yaml index ae0fdfe85b41a883da9b69c895496a3347963ddb..d79ca3c7e880f6c76cd85b89f799d45899d2c3a9 100644 --- a/charts/ghost/values.yaml +++ b/charts/ghost/values.yaml @@ -50,6 +50,9 @@ ingress: ## Enable ingress endpoint enabled: false + ## Maximal body size (default: 2m - increase if uploads failing) + maxBodySize: 2m + ## Additional ingress annotations annotations: {} # kubernetes.io/ingress.class: nginx