diff --git a/charts/wordpress/Chart.yaml b/charts/wordpress/Chart.yaml index 285829f75e6955f5abd33dd67b18183913253317..f6080885e23a86ca6d914da5157adb7c73c466ea 100644 --- a/charts/wordpress/Chart.yaml +++ b/charts/wordpress/Chart.yaml @@ -8,7 +8,7 @@ maintainers: type: application # This is the chart version. -version: 0.1.2 +version: 0.1.3 # This is the version number of the application being deployed. appVersion: "5.5.1-apache" diff --git a/charts/wordpress/README.md b/charts/wordpress/README.md index 433db4ac020116f5dd75e96098bfbafaffe5f682..cc50ddd53a7145ad396fcd337e4485a80e98d8e0 100644 --- a/charts/wordpress/README.md +++ b/charts/wordpress/README.md @@ -1,6 +1,6 @@ # Wordpress -   +   A Helm chart for Wordpress on Kubernetes @@ -117,6 +117,7 @@ $ helm uninstall my-release | customPhpConfig | string | `""` | Additional PHP custom.ini | | settings.tablePrefix | string | `nil` | Database table name prefix | | settings.maxFileUploadSize | string | `64M` | Maximum file upload size | +| settings.memoryLimit | string | `128M` | PHP memory limit | ## Storage parameters diff --git a/charts/wordpress/templates/extended-config.yaml b/charts/wordpress/templates/extended-config.yaml index c4f9343f4001b19dd624dcf92cc226edb8d107cc..902de8effd387a936c6a3c32578498b2d7fcae85 100644 --- a/charts/wordpress/templates/extended-config.yaml +++ b/charts/wordpress/templates/extended-config.yaml @@ -28,4 +28,5 @@ data: {{ .Values.customPhpConfig | nindent 4 }} {{- else }} upload_max_filesize = {{ .Values.settings.maxFileUploadSize }} + memory_limit = {{ .Values.settings.memoryLimit }} {{- end }} diff --git a/charts/wordpress/values.yaml b/charts/wordpress/values.yaml index b601e865d2798a25d9c4c9f9c611206f18560178..90f7e72f9cac7142754db95eb0c4fb5e65302e36 100644 --- a/charts/wordpress/values.yaml +++ b/charts/wordpress/values.yaml @@ -131,6 +131,8 @@ settings: tablePrefix: ## Maximum file upload size (default: 64M) maxFileUploadSize: 64M + ## PHP memory limit (default: 128M) + memoryLimit: 128M ## Additional PHP custom.ini customPhpConfig: |