⬆️ unifi app-template v2

This commit is contained in:
auricom
2023-11-04 15:49:07 +01:00
parent 532c18f025
commit 47963c8304
4 changed files with 36 additions and 41 deletions

View File

@@ -10,7 +10,7 @@ spec:
chart:
spec:
chart: app-template
version: 1.5.1
version: 2.0.3
sourceRef:
kind: HelmRepository
name: bjw-s
@@ -27,6 +27,13 @@ spec:
uninstall:
keepHistory: false
values:
controllers:
main:
type: statefulset
annotations:
reloader.stakater.com/auto: "true"
containers:
main:
image:
repository: jacobalberty/unifi
tag: v7.5.176
@@ -38,6 +45,18 @@ spec:
UNIFI_STDOUT: "true"
JVM_INIT_HEAP_SIZE:
JVM_MAX_HEAP_SIZE: 1024M
resources:
requests:
memory: 2Gi
cpu: 50m
statefulset:
volumeClaimTemplates:
- name: config
accessMode: ReadWriteOnce
size: 10Gi
storageClass: rook-ceph-block
globalMounts:
- path: /unifi
service:
main:
type: LoadBalancer
@@ -78,7 +97,7 @@ spec:
ingress:
main:
enabled: true
ingressClassName: "nginx"
className: "nginx"
annotations:
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
hajimari.io/icon: mdi:lan
@@ -86,15 +105,9 @@ spec:
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
paths:
- path: /
service:
name: main
port: http
tls:
- hosts:
- *host
persistence:
config:
enabled: true
existingClaim: unifi-config
mountPath: /unifi
resources:
requests:
memory: 2Gi
cpu: 50m

View File

@@ -7,4 +7,3 @@ resources:
- ./gatus.yaml
- ./helmrelease.yaml
- ./volsync.yaml
- ./volume.yaml

View File

@@ -30,7 +30,7 @@ metadata:
name: unifi
namespace: default
spec:
sourcePVC: unifi-config
sourcePVC: config-unifi-0
trigger:
schedule: "0 7 * * *"
restic:

View File

@@ -1,17 +0,0 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: unifi-config
namespace: default
labels:
app.kubernetes.io/name: &name unifi
app.kubernetes.io/instance: *name
snapshot.home.arpa/enabled: "true"
spec:
accessModes:
- ReadWriteOnce
storageClassName: rook-ceph-block
resources:
requests:
storage: 10Gi