updating with charts repo PR

This commit is contained in:
Jeff Billimek 2018-09-11 14:29:08 +00:00
parent 9a1f166b99
commit 5d03ac9628
6 changed files with 63 additions and 57 deletions

View File

@ -19,3 +19,5 @@
.project .project
.idea/ .idea/
*.tmproj *.tmproj
# OWNERS file for Kubernetes
OWNERS

View File

@ -1,17 +1,17 @@
apiVersion: v1 apiVersion: v1
appVersion: 5.8.24 appVersion: 5.8.28
description: Ubiqiti Network's Unifi Controller description: Ubiqiti Network's Unifi Controller
name: unifi name: unifi
version: 0.1.13 version: 0.1.0
keywords: keywords:
- ubiqiti - ubiqiti
- unifi - unifi
- mongodb - mongodb
home: https://github.com/jacobalberty/unifi-docker home: https://github.com/jacobalberty/unifi-docker
icon: https://blog.ubnt.com/wp-content/uploads/2016/10/unifi-app-logo.png icon: https://blog.ubnt.com/wp-content/uploads/2016/10/unifi-app-logo.png
sources: sources:
- https://github.com/jacobalberty/unifi-docker - https://github.com/jacobalberty/unifi-docker
- https://github.com/kubernetes/charts/stable/unifi - https://github.com/kubernetes/charts/stable/unifi
maintainers: maintainers:
- name: billimek - name: billimek
email: jeff@billimek.com email: jeff@billimek.com

4
unifi/OWNERS Normal file
View File

@ -0,0 +1,4 @@
approvers:
- billimek
reviewers:
- billimek

View File

@ -61,11 +61,11 @@ The following tables lists the configurable parameters of the Sentry chart and t
| `ingress.hosts` | Ingress accepted hostnames | `chart-example.local` | | `ingress.hosts` | Ingress accepted hostnames | `chart-example.local` |
| `ingress.tls` | Ingress TLS configuration | `[]` | | `ingress.tls` | Ingress TLS configuration | `[]` |
| `timezone` | Timezone the Unifi controller should run as, e.g. 'America/New York' | `UTC` | | `timezone` | Timezone the Unifi controller should run as, e.g. 'America/New York' | `UTC` |
| `runas_root` | Run the controller as UID0 (root user) | `false` | | `runAsRoot` | Run the controller as UID0 (root user) | `false` |
| `mongodb.enabled` | Use external MongoDB for data storage | `false` | | `mongodb.enabled` | Use external MongoDB for data storage | `false` |
| `mongodb.db_uri` | external MongoDB URI | `mongodb://mongo/unifi` | | `mongodb.dbUri` | external MongoDB URI | `mongodb://mongo/unifi` |
| `mongodb.statdb_uri` | external MongoDB statdb URI | `mongodb://mongo/unifi_stat` | | `mongodb.statDbUri` | external MongoDB statdb URI | `mongodb://mongo/unifi_stat` |
| `mongodb.database_name` | external MongoDB database name | `unifi` | | `mongodb.databaseName` | external MongoDB database name | `unifi` |
| `persistence.enabled` | Use persistent volume to store data | `true` | | `persistence.enabled` | Use persistent volume to store data | `true` |
| `persistence.size` | Size of persistent volume claim | `5Gi` | | `persistence.size` | Size of persistent volume claim | `5Gi` |
| `persistence.existingClaim`| Use an existing PVC to persist data | `nil` | | `persistence.existingClaim`| Use an existing PVC to persist data | `nil` |

View File

@ -24,18 +24,18 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
ports: ports:
- name: gui - name: gui
containerPort: {{ .Values.guiService.port }} containerPort: {{ .Values.guiService.port }}
protocol: TCP protocol: TCP
- name: controller - name: controller
containerPort: {{ .Values.controllerService.port }} containerPort: {{ .Values.controllerService.port }}
protocol: TCP protocol: TCP
- name: discovery - name: discovery
containerPort: {{ .Values.discoveryService.port }} containerPort: {{ .Values.discoveryService.port }}
protocol: UDP protocol: UDP
- name: stun - name: stun
containerPort: {{ .Values.stunService.port }} containerPort: {{ .Values.stunService.port }}
protocol: UDP protocol: UDP
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /status path: /status
@ -52,38 +52,38 @@ spec:
- name: TZ - name: TZ
value: "{{ .Values.timezone }}" value: "{{ .Values.timezone }}"
- name: RUNAS_UID0 - name: RUNAS_UID0
value: "{{ .Values.runas_root }}" value: "{{ .Values.runAsRoot }}"
{{- if .Values.mongodb.enabled }} {{- if .Values.mongodb.enabled }}
- name: DB_URI - name: DB_URI
value: "{{ .Values.mongodb.db_uri }}" value: "{{ .Values.mongodb.dbUri }}"
- name: STATDB_URI - name: STATDB_URI
value: "{{ .Values.mongodb.statdb_uri }}" value: "{{ .Values.mongodb.statDbUri }}"
- name: DB_NAME - name: DB_NAME
value: "{{ .Values.mongodb.database_name }}" value: "{{ .Values.mongodb.databaseName }}"
{{- end }} {{- end }}
volumeMounts: volumeMounts:
- mountPath: /unifi/data - mountPath: /unifi/data
name: unifi-data name: unifi-data
subPath: data subPath: data
- mountPath: /unifi/log - mountPath: /unifi/log
name: unifi-data name: unifi-data
subPath: log subPath: log
- mountPath: /unifi/cert - mountPath: /unifi/cert
name: unifi-data name: unifi-data
subPath: cert subPath: cert
- mountPath: /unifi/init.d - mountPath: /unifi/init.d
name: unifi-data name: unifi-data
subPath: init.d subPath: init.d
resources: resources:
{{ toYaml .Values.resources | indent 12 }} {{ toYaml .Values.resources | indent 12 }}
volumes: volumes:
- name: unifi-data - name: unifi-data
{{- if .Values.persistence.enabled }} {{- if .Values.persistence.enabled }}
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ template "unifi.fullname" . }}{{- end }} claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ template "unifi.fullname" . }}{{- end }}
{{- else }} {{- else }}
emptyDir: {} emptyDir: {}
{{ end }} {{ end }}
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
nodeSelector: nodeSelector:
{{ toYaml . | indent 8 }} {{ toYaml . | indent 8 }}

View File

@ -6,7 +6,7 @@ replicaCount: 1
image: image:
repository: jacobalberty/unifi repository: jacobalberty/unifi
tag: 5.8.24 tag: 5.8.28
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
guiService: guiService:
@ -45,7 +45,7 @@ controllerService:
stunService: stunService:
type: NodePort type: NodePort
port: 3478 # udp port: 3478 # udp
## Specify the nodePort value for the LoadBalancer and NodePort service types. ## Specify the nodePort value for the LoadBalancer and NodePort service types.
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
## ##
@ -62,7 +62,7 @@ stunService:
discoveryService: discoveryService:
type: NodePort type: NodePort
port: 10001 # udp port: 10001 # udp
## Specify the nodePort value for the LoadBalancer and NodePort service types. ## Specify the nodePort value for the LoadBalancer and NodePort service types.
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
## ##
@ -92,14 +92,14 @@ ingress:
timezone: UTC timezone: UTC
runas_root: false runAsRoot: false
# define an external mongoDB instead of using the built-in mongodb # define an external mongoDB instead of using the built-in mongodb
mongodb: mongodb:
enabled: false enabled: false
db_uri: mongodb://mongo/unifi dbUri: mongodb://mongo/unifi
statdb_uri: mongodb://mongo/unifi_stat statDbUri: mongodb://mongo/unifi_stat
database_name: unifi databaseName: unifi
persistence: persistence:
enabled: true enabled: true