diff --git a/charts/unifi/Chart.yaml b/charts/unifi/Chart.yaml index 374bdddf..2107f351 100644 --- a/charts/unifi/Chart.yaml +++ b/charts/unifi/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: 5.14.23 description: Ubiquiti Network's Unifi Controller name: unifi -version: 1.2.0 +version: 1.3.0 keywords: - ubiquiti - unifi diff --git a/charts/unifi/README.md b/charts/unifi/README.md index 4650eeda..50ff8561 100644 --- a/charts/unifi/README.md +++ b/charts/unifi/README.md @@ -141,6 +141,8 @@ The following tables lists the configurable parameters of the Unifi chart and th | `persistence.accessModes` | `[]` | Persistence access modes | | `extraConfigFiles` | `{}` | Dictionary containing files mounted to `/configmap` inside the pod (See [values.yaml](values.yaml) for examples) | | `extraJvmOpts` | `[]` | List of additional JVM options, e.g. `["-Dlog4j.configurationFile=file:/configmap/log4j2.xml"]` | +| `jvmInitHeapSize` | `` | Java Virtual Machine (JVM) initial, and minimum, heap size. | +| `jvmMaxHeapSize` | `1024M` | Java Virtual Machine (JVM) maximum heap size. | | `resources` | `{}` | CPU/Memory resource requests/limits | | `livenessProbe.enabled` | `true` | Turn on and off liveness probe | | `livenessProbe.initialDelaySeconds` | `30` | Delay before liveness probe is initiated | diff --git a/charts/unifi/templates/deployment.yaml b/charts/unifi/templates/deployment.yaml index 5233dfaf..4b2a1a15 100644 --- a/charts/unifi/templates/deployment.yaml +++ b/charts/unifi/templates/deployment.yaml @@ -126,6 +126,14 @@ spec: - name: JVM_EXTRA_OPTS value: "{{- join " " .Values.extraJvmOpts }}" {{- end }} + {{- if .Values.jvmInitHeapSize }} + - name: JVM_INIT_HEAP_SIZE + value: "{{ .Values.jvmInitHeapSize }}" + {{- end }} + {{- if .Values.jvmMaxHeapSize }} + - name: JVM_MAX_HEAP_SIZE + value: "{{ .Values.jvmMaxHeapSize }}" + {{- end }} {{- if .Values.mongodb.enabled }} - name: DB_URI value: "{{ .Values.mongodb.dbUri }}" diff --git a/charts/unifi/values.yaml b/charts/unifi/values.yaml index 11a7d94c..b1e5a73e 100644 --- a/charts/unifi/values.yaml +++ b/charts/unifi/values.yaml @@ -300,6 +300,15 @@ extraJvmOpts: [] # - "-Dlog4j.configurationFile=file:/configmap/log4j2.xml" # - "-Dsystem_ip=1.2.3.4" +## Java Virtual Machine (JVM) initial, and minimum, heap size +## Unset value means there is no lower limit +jvmInitHeapSize: + +## Java Virtual Machine (JVM) maximum heap size +## For larger installations a larger value is recommended. +## For memory constrained system this value can be lowered. +jvmMaxHeapSize: 1024M + extraConfigFiles: {} ## Specify additional config files which are mounted to /configmap ## Here is an example for a custom log4j config: