mirror of
https://github.com/Thumbscrew/k8s-charts.git
synced 2025-07-01 18:39:03 +00:00
Compare commits
20 Commits
silverbull
...
unifi-cont
Author | SHA1 | Date | |
---|---|---|---|
b09fbf4303 | |||
ca8620cafe | |||
c3ae45852d | |||
f805f9d579 | |||
0cde0b894a | |||
b53fb31cf6 | |||
1203b8a693 | |||
e609c9f122 | |||
1577d19b31 | |||
8404c02d02 | |||
8d96241dc9 | |||
b70163cea1 | |||
25c69e5cb3 | |||
4ec99d4e9a | |||
515ccba8b7 | |||
829030e476 | |||
85673aae0a | |||
0edd260675 | |||
2e0637bcd7 | |||
cb85166fd3 |
2
.github/workflows/chart-releaser.yaml
vendored
2
.github/workflows/chart-releaser.yaml
vendored
@ -14,7 +14,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
2
.github/workflows/lint-charts.yaml
vendored
2
.github/workflows/lint-charts.yaml
vendored
@ -10,7 +10,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
@ -23,10 +23,10 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 1.3.1
|
version: 1.4.1
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
# It is recommended to use it with quotes.
|
# It is recommended to use it with quotes.
|
||||||
appVersion: "1.23.1"
|
appVersion: "1.24.1"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# freshrss
|
# freshrss
|
||||||
|
|
||||||
  
|
  
|
||||||
|
|
||||||
A Helm chart for FreshRSS
|
A Helm chart for FreshRSS
|
||||||
|
|
||||||
@ -64,5 +64,3 @@ A Helm chart for FreshRSS
|
|||||||
| strategy.type | string | `"Recreate"` | |
|
| strategy.type | string | `"Recreate"` | |
|
||||||
| tolerations | list | `[]` | |
|
| tolerations | list | `[]` | |
|
||||||
|
|
||||||
----------------------------------------------
|
|
||||||
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
|
|
||||||
|
@ -25,10 +25,10 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 1.1.1
|
version: 1.2.4
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
# It is recommended to use it with quotes.
|
# It is recommended to use it with quotes.
|
||||||
appVersion: "10.8.13"
|
appVersion: "10.9.6"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# jellyfin
|
# jellyfin
|
||||||
|
|
||||||
  
|
  
|
||||||
|
|
||||||
A Helm chart for Jellyfin, the Free Software Media System that puts you in control of managing and streaming your media.
|
A Helm chart for Jellyfin, the Free Software Media System that puts you in control of managing and streaming your media.
|
||||||
|
|
||||||
@ -27,6 +27,7 @@ A Helm chart for Jellyfin, the Free Software Media System that puts you in contr
|
|||||||
| ingress.hosts[0].paths[0].path | string | `"/"` | |
|
| ingress.hosts[0].paths[0].path | string | `"/"` | |
|
||||||
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | |
|
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | |
|
||||||
| ingress.tls | list | `[]` | |
|
| ingress.tls | list | `[]` | |
|
||||||
|
| jellyfin.publishedServerUrl | string | `""` | See PublishedServerUrl at https://jellyfin.org/docs/general/administration/configuration#main-configuration-options |
|
||||||
| nameOverride | string | `""` | |
|
| nameOverride | string | `""` | |
|
||||||
| nodeSelector | object | `{}` | |
|
| nodeSelector | object | `{}` | |
|
||||||
| persistence.cache | object | `{"accessMode":"ReadWriteOnce","annotations":{},"enabled":false,"existingClaim":"","size":"10Gi","storageClass":""}` | Persistence config for the /cache volume |
|
| persistence.cache | object | `{"accessMode":"ReadWriteOnce","annotations":{},"enabled":false,"existingClaim":"","size":"10Gi","storageClass":""}` | Persistence config for the /cache volume |
|
||||||
@ -34,10 +35,9 @@ A Helm chart for Jellyfin, the Free Software Media System that puts you in contr
|
|||||||
| persistence.media | object | `{"accessMode":"ReadWriteOnce","annotations":{},"enabled":false,"existingClaim":"","size":"10Gi","storageClass":""}` | Persistence config for the /media volume |
|
| persistence.media | object | `{"accessMode":"ReadWriteOnce","annotations":{},"enabled":false,"existingClaim":"","size":"10Gi","storageClass":""}` | Persistence config for the /media volume |
|
||||||
| podAnnotations | object | `{}` | |
|
| podAnnotations | object | `{}` | |
|
||||||
| podSecurityContext | object | `{}` | |
|
| podSecurityContext | object | `{}` | |
|
||||||
| replicaCount | int | `1` | |
|
|
||||||
| resources | object | `{}` | |
|
| resources | object | `{}` | |
|
||||||
| securityContext.fsGroup | int | `1000` | |
|
|
||||||
| securityContext.readOnlyRootFilesystem | bool | `false` | |
|
| securityContext.readOnlyRootFilesystem | bool | `false` | |
|
||||||
|
| securityContext.runAsGroup | int | `1000` | |
|
||||||
| securityContext.runAsNonRoot | bool | `true` | |
|
| securityContext.runAsNonRoot | bool | `true` | |
|
||||||
| securityContext.runAsUser | int | `1000` | |
|
| securityContext.runAsUser | int | `1000` | |
|
||||||
| service.port | int | `8096` | |
|
| service.port | int | `8096` | |
|
||||||
@ -47,5 +47,3 @@ A Helm chart for Jellyfin, the Free Software Media System that puts you in contr
|
|||||||
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
|
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
|
||||||
| tolerations | list | `[]` | |
|
| tolerations | list | `[]` | |
|
||||||
|
|
||||||
----------------------------------------------
|
|
||||||
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
|
|
||||||
|
@ -24,10 +24,10 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 2.2.0
|
version: 2.5.0
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
# It is recommended to use it with quotes.
|
# It is recommended to use it with quotes.
|
||||||
appVersion: "8.2"
|
appVersion: "8.5"
|
||||||
|
@ -22,10 +22,10 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.1.2
|
version: 0.1.3
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
# It is recommended to use it with quotes.
|
# It is recommended to use it with quotes.
|
||||||
appVersion: "0.7.5"
|
appVersion: "0.7.6"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- name: postgresql
|
- name: postgresql
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
version: 12.12.10
|
version: 15.2.4
|
||||||
digest: sha256:c46f569535f1fbc2cbd743df1c0c38af969b6f82d638705af20aaba0af03d71b
|
digest: sha256:4c9000555069870f9a043b345251dfe8634bc00e008a87d01ac95bfb5c81bba2
|
||||||
generated: "2024-01-20T17:18:32.741753422Z"
|
generated: "2024-04-06T16:59:33.832232151+01:00"
|
||||||
|
@ -16,16 +16,16 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.1.2
|
version: 1.0.0
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
# It is recommended to use it with quotes.
|
# It is recommended to use it with quotes.
|
||||||
appVersion: "1.5.11"
|
appVersion: "1.5.16"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: postgresql
|
- name: postgresql
|
||||||
version: ^12.12.10
|
version: ^15.2.4
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
condition: postgresql.enabled
|
condition: postgresql.enabled
|
||||||
|
@ -67,11 +67,11 @@ spec:
|
|||||||
key: password
|
key: password
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
path: /accounts/login/
|
||||||
port: http
|
port: http
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
path: /accounts/login/
|
||||||
port: http
|
port: http
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
|
1
charts/unifi-controller/.gitignore
vendored
1
charts/unifi-controller/.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
values.test.yaml
|
values.test.yaml
|
||||||
|
charts/*.tgz
|
6
charts/unifi-controller/Chart.lock
Normal file
6
charts/unifi-controller/Chart.lock
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
dependencies:
|
||||||
|
- name: mongodb
|
||||||
|
repository: https://charts.bitnami.com/bitnami
|
||||||
|
version: 15.3.0
|
||||||
|
digest: sha256:f6cc8e47d7f68e327889b4807f488a346c70c7da8c80ea623aa7a1a8c6d95877
|
||||||
|
generated: "2024-05-10T21:31:20.762106802+01:00"
|
@ -15,10 +15,16 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 2.0.0
|
version: 3.0.1
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
# It is recommended to use it with quotes.
|
# It is recommended to use it with quotes.
|
||||||
appVersion: "8.0.7"
|
appVersion: "8.1.127"
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- name: mongodb
|
||||||
|
version: ^15.3.0
|
||||||
|
repository: https://charts.bitnami.com/bitnami
|
||||||
|
condition: mongodb.enabled
|
||||||
|
@ -1,9 +1,15 @@
|
|||||||
# unifi-controller
|
# unifi-controller
|
||||||
|
|
||||||
  
|
  
|
||||||
|
|
||||||
A Helm chart for the Unifi Controller
|
A Helm chart for the Unifi Controller
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
| Repository | Name | Version |
|
||||||
|
|------------|------|---------|
|
||||||
|
| https://charts.bitnami.com/bitnami | mongodb | ^15.3.0 |
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Key | Type | Default | Description |
|
| Key | Type | Default | Description |
|
||||||
@ -12,9 +18,13 @@ A Helm chart for the Unifi Controller
|
|||||||
| config.jvmMemory.limit | string | `"default"` | Integer value in MB or `default` for memory limit for JVM |
|
| config.jvmMemory.limit | string | `"default"` | Integer value in MB or `default` for memory limit for JVM |
|
||||||
| config.jvmMemory.startup | string | `"default"` | Integer value in MB or `default` for startup memory for JVM |
|
| config.jvmMemory.startup | string | `"default"` | Integer value in MB or `default` for startup memory for JVM |
|
||||||
| config.timezone | string | `"Etc/UTC"` | Timezone - see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List |
|
| config.timezone | string | `"Etc/UTC"` | Timezone - see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List |
|
||||||
|
| externalMongodb.database | string | `"unifi"` | |
|
||||||
|
| externalMongodb.enabled | bool | `false` | Use an external MongoDB database |
|
||||||
|
| externalMongodb.port | int | `27017` | |
|
||||||
|
| externalMongodb.username | string | `"unifi"` | |
|
||||||
| fullnameOverride | string | `""` | |
|
| fullnameOverride | string | `""` | |
|
||||||
| image.pullPolicy | string | `"IfNotPresent"` | |
|
| image.pullPolicy | string | `"IfNotPresent"` | |
|
||||||
| image.repository | string | `"quay.io/linuxserver.io/unifi-controller"` | |
|
| image.repository | string | `"lscr.io/linuxserver/unifi-network-application"` | |
|
||||||
| image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. |
|
| image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. |
|
||||||
| imagePullSecrets | list | `[]` | |
|
| imagePullSecrets | list | `[]` | |
|
||||||
| ingress.annotations | object | `{}` | |
|
| ingress.annotations | object | `{}` | |
|
||||||
@ -24,6 +34,13 @@ A Helm chart for the Unifi Controller
|
|||||||
| ingress.hosts[0].paths[0].path | string | `"/"` | |
|
| ingress.hosts[0].paths[0].path | string | `"/"` | |
|
||||||
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | |
|
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | |
|
||||||
| ingress.tls | list | `[]` | |
|
| ingress.tls | list | `[]` | |
|
||||||
|
| mongodb.auth.databases[0] | string | `"unifi"` | |
|
||||||
|
| mongodb.auth.passwords[0] | string | `"unifi"` | |
|
||||||
|
| mongodb.auth.rootPassword | string | `"unifi"` | |
|
||||||
|
| mongodb.auth.rootUser | string | `"root"` | |
|
||||||
|
| mongodb.auth.usernames[0] | string | `"unifi"` | |
|
||||||
|
| mongodb.enabled | bool | `true` | Deploy Bitnami MongoDB sub-chart |
|
||||||
|
| mongodb.initdbScriptsConfigMap | string | `"initdb-scripts"` | |
|
||||||
| nameOverride | string | `""` | |
|
| nameOverride | string | `""` | |
|
||||||
| nodeSelector | object | `{}` | |
|
| nodeSelector | object | `{}` | |
|
||||||
| persistence.accessMode | string | `"ReadWriteOnce"` | |
|
| persistence.accessMode | string | `"ReadWriteOnce"` | |
|
||||||
@ -44,5 +61,3 @@ A Helm chart for the Unifi Controller
|
|||||||
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
|
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
|
||||||
| tolerations | list | `[]` | |
|
| tolerations | list | `[]` | |
|
||||||
|
|
||||||
----------------------------------------------
|
|
||||||
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
|
|
||||||
|
@ -60,3 +60,81 @@ Create the name of the service account to use
|
|||||||
{{- default "default" .Values.serviceAccount.name }}
|
{{- default "default" .Values.serviceAccount.name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
*/}}
|
||||||
|
{{- define "unifi-controller.mongodb.fullname" -}}
|
||||||
|
{{- printf "%s-%s" .Release.Name "mongodb" | trunc 63 | trimSuffix "-" -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Set mongodb host
|
||||||
|
*/}}
|
||||||
|
{{- define "unifi-controller.mongodb.host" -}}
|
||||||
|
{{- if .Values.mongodb.enabled -}}
|
||||||
|
{{- template "unifi-controller.mongodb.fullname" . -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{ required "A valid externalMongodb.host is required" .Values.externalMongodb.host }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Set mongodb secret
|
||||||
|
*/}}
|
||||||
|
{{- define "unifi-controller.mongodb.secret" -}}
|
||||||
|
{{- if .Values.mongodb.enabled -}}
|
||||||
|
{{- template "unifi-controller.mongodb.fullname" . -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- template "unifi-controller.fullname" . -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Set mongodb port
|
||||||
|
*/}}
|
||||||
|
{{- define "unifi-controller.mongodb.port" -}}
|
||||||
|
{{- if .Values.mongodb.enabled -}}
|
||||||
|
{{- if .Values.mongodb.service -}}
|
||||||
|
{{- .Values.mongodb.service.port | default 27017 }}
|
||||||
|
{{- else -}}
|
||||||
|
5432
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- required "A valid externalMongodb.port is required" .Values.externalMongodb.port -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Set mongodb username
|
||||||
|
*/}}
|
||||||
|
{{- define "unifi-controller.mongodb.username" -}}
|
||||||
|
{{- if .Values.mongodb.enabled -}}
|
||||||
|
{{ required "A valid mongodb.auth.usernames is required" (first .Values.mongodb.auth.usernames) }}
|
||||||
|
{{- else -}}
|
||||||
|
{{ required "A valid externalMongodb.username is required" .Values.externalMongodb.username }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Set mongodb password
|
||||||
|
*/}}
|
||||||
|
{{- define "unifi-controller.mongodb.password" -}}
|
||||||
|
{{- if .Values.mongodb.enabled -}}
|
||||||
|
{{ required "A valid mongodb.auth.passwords is required" (first .Values.mongodb.auth.passwords) }}
|
||||||
|
{{- else if not (and .Values.externalMongodb.existingSecret .Values.externalMongodb.existingSecretPasswordKey) -}}
|
||||||
|
{{ required "A valid externalMongodb.password is required" .Values.externalMongodb.password }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Set mongodb database
|
||||||
|
*/}}
|
||||||
|
{{- define "unifi-controller.mongodb.database" -}}
|
||||||
|
{{- if .Values.mongodb.enabled -}}
|
||||||
|
{{- (first .Values.mongodb.auth.databases) | default "unifi" }}
|
||||||
|
{{- else -}}
|
||||||
|
{{ required "A valid externalMongodb.database is required" .Values.externalMongodb.database }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
10
charts/unifi-controller/templates/configmap.yaml
Normal file
10
charts/unifi-controller/templates/configmap.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{{- if .Values.mongodb.enabled -}}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: initdb-scripts
|
||||||
|
data:
|
||||||
|
init-mongo.js: |
|
||||||
|
db = db.getSiblingDB("{{ include "unifi-controller.mongodb.database" . }}");
|
||||||
|
db.grantRolesToUser("{{ include "unifi-controller.mongodb.username" . }}", [{role: "dbOwner", db: "{{ include "unifi-controller.mongodb.database" . }}_stat"}])
|
||||||
|
{{- end }}
|
@ -67,6 +67,26 @@ spec:
|
|||||||
value: {{ .Values.config.jvmMemory.startup }}
|
value: {{ .Values.config.jvmMemory.startup }}
|
||||||
- name: MEM_LIMIT
|
- name: MEM_LIMIT
|
||||||
value: {{ .Values.config.jvmMemory.limit }}
|
value: {{ .Values.config.jvmMemory.limit }}
|
||||||
|
- name: MONGO_HOST
|
||||||
|
value: {{ include "unifi-controller.mongodb.host" . }}
|
||||||
|
- name: MONGO_PORT
|
||||||
|
value: {{ include "unifi-controller.mongodb.port" . | quote }}
|
||||||
|
- name: MONGO_USER
|
||||||
|
value: {{ include "unifi-controller.mongodb.username" . }}
|
||||||
|
{{- if or .Values.mongodb.enabled .Values.externalMongodb.existingSecret }}
|
||||||
|
- name: MONGO_PASS
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
{{- if .Values.mongodb.enabled }}
|
||||||
|
name: {{ .Values.mongodb.existingSecret | default (include "unifi-controller.mongodb.fullname" .) }}
|
||||||
|
key: mongodb-passwords
|
||||||
|
{{- else }}
|
||||||
|
name: {{ .Values.externalMongodb.existingSecret }}
|
||||||
|
key: {{ .Values.externalMongodb.existingSecretPasswordKey }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
- name: MONGO_DBNAME
|
||||||
|
value: {{ include "unifi-controller.mongodb.database" . }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# Declare variables to be passed into your templates.
|
# Declare variables to be passed into your templates.
|
||||||
|
|
||||||
image:
|
image:
|
||||||
repository: quay.io/linuxserver.io/unifi-controller
|
repository: lscr.io/linuxserver/unifi-network-application
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
# -- Overrides the image tag whose default is the chart appVersion.
|
# -- Overrides the image tag whose default is the chart appVersion.
|
||||||
tag: ""
|
tag: ""
|
||||||
@ -56,6 +56,30 @@ service:
|
|||||||
combinedProtocols: true
|
combinedProtocols: true
|
||||||
annotations: {}
|
annotations: {}
|
||||||
|
|
||||||
|
mongodb:
|
||||||
|
# -- Deploy Bitnami MongoDB sub-chart
|
||||||
|
enabled: true
|
||||||
|
auth:
|
||||||
|
rootUser: root
|
||||||
|
rootPassword: unifi
|
||||||
|
databases:
|
||||||
|
- unifi
|
||||||
|
usernames:
|
||||||
|
- unifi
|
||||||
|
passwords:
|
||||||
|
- unifi
|
||||||
|
initdbScriptsConfigMap: initdb-scripts
|
||||||
|
|
||||||
|
externalMongodb:
|
||||||
|
# -- Use an external MongoDB database
|
||||||
|
enabled: false
|
||||||
|
# host: mongodb
|
||||||
|
port: 27017
|
||||||
|
database: unifi
|
||||||
|
username: unifi
|
||||||
|
# existingSecret: unifi-mongodb
|
||||||
|
# existingSecretPasswordKey: password
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
className: ""
|
className: ""
|
||||||
|
Reference in New Issue
Block a user