diff --git a/charts/unifi/Chart.yaml b/charts/unifi/Chart.yaml index c76ab439..4e359b0e 100644 --- a/charts/unifi/Chart.yaml +++ b/charts/unifi/Chart.yaml @@ -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 diff --git a/charts/unifi/README.md b/charts/unifi/README.md index 44f4da61..a0a573fc 100644 --- a/charts/unifi/README.md +++ b/charts/unifi/README.md @@ -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 `/cert` | +| `customCert.keyName` | `privkey.pem` | Name of the the private key file in `/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 | diff --git a/charts/unifi/templates/deployment.yaml b/charts/unifi/templates/deployment.yaml index c93d4448..067d6596 100644 --- a/charts/unifi/templates/deployment.yaml +++ b/charts/unifi/templates/deployment.yaml @@ -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: diff --git a/charts/unifi/values.yaml b/charts/unifi/values.yaml index 8c69656b..7f79a97f 100644 --- a/charts/unifi/values.yaml +++ b/charts/unifi/values.yaml @@ -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 /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