From e02c2087da0f59d15a053ab07a4d65ccbc4959be Mon Sep 17 00:00:00 2001 From: Thumbscrew Date: Tue, 14 Mar 2023 21:16:27 +0000 Subject: [PATCH] add env variables --- charts/unifi-controller/templates/deployment.yaml | 7 +++++++ charts/unifi-controller/values.yaml | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/charts/unifi-controller/templates/deployment.yaml b/charts/unifi-controller/templates/deployment.yaml index 736c07c..2a8fef6 100644 --- a/charts/unifi-controller/templates/deployment.yaml +++ b/charts/unifi-controller/templates/deployment.yaml @@ -57,6 +57,13 @@ spec: # path: / # port: http # initialDelaySeconds: 120 + env: + - name: TZ + value: {{ .Values.config.timezone }} + - name: MEM_STARTUP + value: {{ .Values.config.jvmMemory.startup }} + - name: MEM_LIMIT + value: {{ .Values.config.jvmMemory.limit }} resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.nodeSelector }} diff --git a/charts/unifi-controller/values.yaml b/charts/unifi-controller/values.yaml index 3c8510f..e8c69c5 100644 --- a/charts/unifi-controller/values.yaml +++ b/charts/unifi-controller/values.yaml @@ -12,6 +12,12 @@ imagePullSecrets: [] nameOverride: "" fullnameOverride: "" +config: + timezone: Etc/UTC + jvmMemory: + startup: default + limit: default + serviceAccount: # Specifies whether a service account should be created create: true