[stable/unifi] add custom cert options (#21863)

* feat(unifi): add custom cert options

Signed-off-by: PixelJonas <jonas@janz.digital>

* feat(unifi): bump version to 0.7.0

Signed-off-by: PixelJonas <jonas@janz.digital>
This commit is contained in:
Jonas Janz
2020-04-10 12:07:47 -07:00
committed by GitHub
parent 25f7b3314c
commit f01532a971
4 changed files with 22 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 5.12.35
description: Ubiquiti Network's Unifi Controller
name: unifi
version: 0.6.5
version: 0.7.0
keywords:
- ubiquiti
- unifi
+4
View File
@@ -100,6 +100,10 @@ The following tables lists the configurable parameters of the Unifi chart and th
| `runAsRoot` | `false` | Run the controller as UID0 (root user); if set to false, will give container SETFCAP instead |
| `UID` | `999` | Run the controller as user UID |
| `GID` | `999` | Run the controller as group GID |
| `customCert.enabled` | `false` | Define whether you are using s custom certificate |
| `customCert.isChain` | `false` | If you are using a Let's Encrypt certificate which already includes the full chain set this to `true` |
| `customCert.certName` | `cert.pem` | Name of the the certificate file in `<unifi-data>/cert` |
| `customCert.keyName` | `privkey.pem` | Name of the the private key file in `<unifi-data>/cert` |
| `mongodb.enabled` | `false` | Use external MongoDB for data storage |
| `mongodb.dbUri` | `mongodb://mongo/unifi` | external MongoDB URI |
| `mongodb.statDbUri` | `mongodb://mongo/unifi_stat` | external MongoDB statdb URI |
+8
View File
@@ -118,6 +118,14 @@ spec:
- name: extra-config
mountPath: /configmap
{{- end }}
{{- if and .Values.customCert .Values.customCert.enabled }}
- name: CERT_IS_CHAIN
value: "{{ .Values.customCert.isChain }}"
- name: CERTNAME
value: "{{ .Values.customCert.certName }}"
- name: CERT_PRIVATE_NAME
value: "{{ .Values.customCert.keyName }}"
{{- end }}
resources:
{{ toYaml .Values.resources | indent 12 }}
volumes:
+9 -1
View File
@@ -180,7 +180,15 @@ runAsRoot: false
UID: 999
GID: 999
# define an external mongoDB instead of using the built-in mongodb
## If you provide your own custom certificate in <unifi-data>/cert
## you can define the following parameters to configure the controller
customCert:
enabled: false
isChain: false
certName: cert.pem
keyName: privkey.pem
# define an external mongoDB instead of using the built-in mongodb
mongodb:
enabled: false
dbUri: mongodb://mongo/unifi