[stable/unifi] Add UID and GID options. (#10218)

Signed-off-by: Jacob Block <jacob.block@gmail.com>
This commit is contained in:
Jacob Block 2018-12-22 08:18:27 -06:00 committed by Jeff Billimek
parent be82a0fccb
commit 4cbe828448
No known key found for this signature in database
GPG Key ID: 214B3EF39B4956B7
4 changed files with 9 additions and 1 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 5.9.29
description: Ubiquiti Network's Unifi Controller
name: unifi
version: 0.2.3
version: 0.2.4
keywords:
- ubiquiti
- unifi

View File

@ -75,6 +75,8 @@ The following tables lists the configurable parameters of the Sentry chart and t
| `ingress.tls` | Ingress TLS configuration | `[]` |
| `timezone` | Timezone the Unifi controller should run as, e.g. 'America/New York' | `UTC` |
| `runAsRoot` | Run the controller as UID0 (root user) | `false` |
| `UID` | Run the controller as user UID | `999` |
| `GID` | Run the controller as group GID | `999` |
| `addSetfcap` | Give the controller container the SETFCAP capability; this is necessary when not running as root | `true` |
| `mongodb.enabled` | Use external MongoDB for data storage | `false` |
| `mongodb.dbUri` | external MongoDB URI | `mongodb://mongo/unifi` |

View File

@ -65,6 +65,10 @@ spec:
value: "{{ .Values.timezone }}"
- name: RUNAS_UID0
value: "{{ .Values.runAsRoot }}"
- name: UNIFI_UID
value: "{{ .Values.UID }}"
- name: UNIFI_GID
value: "{{ .Values.GID }}"
{{- if .Values.mongodb.enabled }}
- name: DB_URI
value: "{{ .Values.mongodb.dbUri }}"

View File

@ -110,6 +110,8 @@ timezone: UTC
runAsRoot: false
addSetfcap: true
UID: 999
GID: 999
# define an external mongoDB instead of using the built-in mongodb
mongodb: