[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 21:07:47 +02:00 committed by Jeff Billimek
parent 50ce4d6bde
commit 65abab892e
No known key found for this signature in database
GPG Key ID: 214B3EF39B4956B7
4 changed files with 22 additions and 2 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 5.12.35 appVersion: 5.12.35
description: Ubiquiti Network's Unifi Controller description: Ubiquiti Network's Unifi Controller
name: unifi name: unifi
version: 0.6.5 version: 0.7.0
keywords: keywords:
- ubiquiti - ubiquiti
- unifi - unifi

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 | | `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 | | `UID` | `999` | Run the controller as user UID |
| `GID` | `999` | Run the controller as group GID | | `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.enabled` | `false` | Use external MongoDB for data storage |
| `mongodb.dbUri` | `mongodb://mongo/unifi` | external MongoDB URI | | `mongodb.dbUri` | `mongodb://mongo/unifi` | external MongoDB URI |
| `mongodb.statDbUri` | `mongodb://mongo/unifi_stat` | external MongoDB statdb URI | | `mongodb.statDbUri` | `mongodb://mongo/unifi_stat` | external MongoDB statdb URI |

View File

@ -118,6 +118,14 @@ spec:
- name: extra-config - name: extra-config
mountPath: /configmap mountPath: /configmap
{{- end }} {{- 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: resources:
{{ toYaml .Values.resources | indent 12 }} {{ toYaml .Values.resources | indent 12 }}
volumes: volumes:

View File

@ -180,7 +180,15 @@ runAsRoot: false
UID: 999 UID: 999
GID: 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: mongodb:
enabled: false enabled: false
dbUri: mongodb://mongo/unifi dbUri: mongodb://mongo/unifi